RRO

From FarmShare

Revision as of 11:44, 13 October 2015 by Chekh (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Revolution R is a pre-packages distribution of R. Here's how you can install it into your homedir without sysadmin intervention.

It's a little bit round-about because they actually only provide .deb packages, but we want just the files. So we extract the files from the deb instead of just installing the deb into the system.

We currently use the Ubuntu 14.04 distribution, so we download the appropriate packages from here: https://mran.revolutionanalytics.com/download/#download

 mkdir ~/RRO
 cd RRO
 wget https://mran.revolutionanalytics.com/install/RRO-3.2.2-Ubuntu-14.4.x86_64.deb
 wget https://mran.revolutionanalytics.com/install/RevoMath-3.2.2.tar.gz
 dpkg -X RRO-3.2.2-Ubuntu-14.4.x86_64.deb .
 tar zxvf RevoMath-3.2.2.tar.gz
 export LD_LIBRARY_PATH=~/RRO/RevoMath/mkl/libs:$LD_LIBRARY_PATH
 export PATH=~/RRO/usr/lib64/RRO-3.2.2/R-3.2.2/lib/R/bin/:$PATH
 

Now you can check which R you're going to use, it should point to the RRO R:

 which R

You can check the version:

 R --version

You can check the library:

 R
 library();

In my case it says:

 Packages in library ‘/home/chekh/RRO/usr/lib64/RRO-3.2.2/R-3.2.2/lib/R/library’:
Personal tools
Toolbox
LANGUAGES