back to notes

r packages conf library profile

a good alternative to investigate:

Set a site variable inside the C:\Program Files\R\R-3.4.1\etc\Rprofile.site R_LIBS=S:/rlibs or \\oit-nas-fe11.oit.duke.edu\lib-edge\scratch\t2

this works but is windows user specific: make a file `.Renviron` in the windows-user/documents directory. Inside .Renviron user should set the path R_LIBS=S:/Rlibs

library("ggplot2", lib.loc="D:/Rlibs")


Some things I have investigated: set .libPaths() in the .Rprofile file so that library-packages are pulled from d:/r-packages as documented here:

https://stackoverflow.com/questions/2615128/where-does-r-store-packages

and here:

https://cran.r-project.org/bin/windows/base/rw-FAQ.html#I-don_0027t-have-permission-to-write-to-the-R_002d3_002e4_002e2_005clibrary-directory

AND HERE:

https://cran.r-project.org/bin/windows/base/rw-FAQ.html#What-are-HOME-and-working-directories_003f

AND HERE: https://csgillespie.github.io/efficientR/3-3-r-startup.html#renviron


last updated january 2018