sdllc / Basic-Excel-R-Toolkit

http://bert-toolkit.com
207 stars 40 forks source link

CRAN R Packages - BERT library #65

Open exros opened 7 years ago

exros commented 7 years ago

Hi,

i am deploying an user environment variable R_LIBS_USER with the value H:\R\library which works for R and RStudio. Both are installing CRAN R Packages to H:\R\library.

How do i get BERT to use that path too?

many thanks, exros

duncanwerner commented 7 years ago

It looks like we're dropping that when we install our local library path. I will fix that, but for now a workaround would be to install it in the functions.R file when it loads,

.libPaths(c(unlist(.libPaths()),
    unlist(strsplit(Sys.getenv("R_LIBS_USER"), ";"))))