install R on CentOS 6.4

These are some installation notes for R, on yum repository. The software has been installed and configured to run on a CentOS 6.4 machine, 64 bit. Precis manual is public available and downloadable from:

http://www.r-project.org/

First install epel:

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

then run YUM:

yum install R

The R Manuals:

http://cran.r-project.org/manuals.html

Example:

Edit a file 'test.R' and paste the following:

sayHello <- function(){
   print('hello')
}
sayHello()

Then run the following command:

Rscript test.R

Note that when using 'R CMD BATCH test.R', instead of redirecting it to standard output and displaying it on the terminal a new file called test.Rout will be created.

R CMD BATCH test.R
# Check the output
cat test.Rout