Installing R Libraries Locally
You can download and install any R Libraries which you might need to run on the cluster into your home directory, and simply use them from there. These instructions give you the steps to accomplish this.
1. ssh to the cluster
2. Create a directory to hold the libraries (ie Rlib)
3. Launch R
/usr/local/apps64/R/bin/R3. Type the command to install the desired package
install.packages("package_name")
Follow the prompts to pick a mirror, etc. The install will fail, but the package will be downloaded to a file in the /tmp directory.4. Open another ssh window and login to the cluster
5. Extract the downloaded package into the directory created in step 2.
cd tar zxvf /tmp/"downloaded package file"6. Findout full path to your home directory
pwd7. Install the library (command is all on one line)
/usr/local/apps64/R/bin/R CMD INSTALL --library=Full_home_directory_Path/Rlib package_name
The package should now be installed, and when you want to use that library, you must specify the location :
library(library_name,lib.loc="~userid/Rlib")
