As part of our forthcoming magazine article “Building an Analytical Platform” for SAP we described the need to install both R and RStudio.
Our test system is an older CentOs 5.8 Linux box and so needs to use the Extra Packages for Enterprise Linux (EPEL) packages
As ‘root’ on your system perform the following four commands (Note: Version numbers may vary)
To install R
rpm -ivh http://mirror.chpc.utah.edu/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
yum install R
To install RStudio
wget http://download2.rstudio.org/rstudio-server-0.96.316-i686.rpm
rpm -Uvh rstudio-server-0.96.316-i686.rpm
You can check out the RSudio versions at: http://rstudio.org/download/server
Once you have done this (and assuming you don’t need to open any firewalls etc.) you can simply use the URL in your web browser.
http://< ;your-server-name-here>;:8787
The username and password will be the same as you would use to log into the server that R and RStudio are hosted on.
Upgrading R and RStudio to subsequent releases is also simple.
To update R as ‘root’ on your system simply type
yum update R
To update RStudio simply repeat the steps above – but changing the version numbers
You can also find other useful R resources at: http://www.r-bloggers.com
Thanks a lot, everything works great on my CentOS 6.3.
Do u have 64 bit or 32bit cent os 6.3?
The original article was written for 32-bit CentOS, however we have also subsequently used 64-bit CentOS successfully.
Still doesn’t work for me. I use centos 6 x386.
installed epel 6-7
typed: yum install R
got:
–> Finished Dependency Resolution
Error: Package: R-core-2.15.2-1.el5.i386 (epel)
Requires: libtcl8.4.so
Error: Package: R-core-2.15.2-1.el5.i386 (epel)
Requires: libtk8.4.so
I have libtcl8.5 installed. I think it conflicts with the 8.4 R wants.
How can I solve this? Thank you!
I had the same problem, i solved installing tlc this way:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
sudo yum install tcl
sudo yum clean all
sudo yum install R
Got it,
did a yum clean all
and then again
yum install R
all ok!
Hi
when i type yum install R am getting this
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
The message says it all really: “error: Failed dependencies:” It looks as if you do not have the right R and C components installed for your version of R Studio – you will need to ensure that you have the right permutations of packages on your system.
The blog post that is over 9 months old and since that time new versions of the various software components have been released so unfortunately you will need to do some work yourself to find the right versions. Alternatively try a forum or chat room with people who are using current versions and may be able to answer your issue.