RRO

From FarmShare

(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
   wget https://mran.revolutionanalytics.com/install/RRO-3.2.2-Ubuntu-14.4.x86_64.deb
   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
   wget https://mran.revolutionanalytics.com/install/RevoMath-3.2.2.tar.gz
-
   dpkg -X RRO-3.2.2-Ubuntu-14.4.x86_64.deb .
+
   dpkg -X RRO-3.2.2-Ubuntu-14.4.x86_64.deb . #extract the deb
   tar zxvf RevoMath-3.2.2.tar.gz
   tar zxvf RevoMath-3.2.2.tar.gz
   export LD_LIBRARY_PATH=~/RRO/RevoMath/mkl/libs:$LD_LIBRARY_PATH
   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
   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:
+
Now you can check which R you're going to use, it should point to your RRO R:
   which R
   which R

Revision as of 11:47, 13 October 2015

Revolution R is a pre-compiled 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 . #extract the 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 your 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’:

If you want this to work every time you log in, you'd need to add the LD_LIBRARY_PATH and PATH modifications to your startup scripts. Pretty standard.

Personal tools
Toolbox
LANGUAGES