Install R CentOS 5

I have tried installing R on CentOS 5.5 by the following way and it test good.

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install R



You can run the R with scripts from cmd line by doing one of the following:

R < mean.R
R CMD BATCH mean.R
Rscript mean.R



If you want to install additional packages to R

1. if you log in as root: install.packages('package_name')

2. If you have root privilege:

$ sudo R

$ install.packages('package_name')

3. There are other ways, install the package as a private library as well.

No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...