Skip to content

BBL R library mgmt on CFN

chadtj edited this page Jul 11, 2016 · 3 revisions

In order to have the appropriate settings for R libraries and versions as part of the BBL group, all users must have the following line at the end of their .bash_profile:

source /data/joy/BBL/applications/bashrc

This sets up important options for BBL users including important R library config options

Note that the default BBL R version is 3.2.3 (“wooden christmas tree”)

R libraries for this version now go here by default

/data/joy/BBL/applications/Rlibraries/3.2

If you want to install something elsewhere (or use a different package version), you can do so by setting your $R_LIBS_USER variable to a different location

Note that new packages get installed in that location by default. On CFN, there is a problem with using http rather than HTTPS due to the firewall, so you will get a URL error and new packages will not be downloaded.

To avoid this, in your R console session type the command below—this will fix it

options(download.file.method = "wget")

Note: The .Rprofile with the above text appended to it is automatically created by sourcing the BBLs bashrc as of 2016-07-08