Skip to content
Prev 383859 / 398502 Next

Help with R-Markdown please

On 2020-05-13 18:46 +0000, Poling, William via R-help wrote:
Dear William,

Perhaps you could try to set the variable 
R_LIBS_USER to some local folder.  I do not 
know how to do this on Windows, but there 
seems to be some guys in this rstudio 
discussion thread that came to some sort of a 
conclusion: 
https://community.rstudio.com/t/help-regarding-package-installation-renviron-rprofile-r-libs-r-libs-site-and-r-libs-user-oh-my/13888/8 

Since long ago, I have had this line in my 
~/.zshrc.local  :)

[ -e /usr/bin/Rscript ] && R_LIBS_USER=`Rscript -e 'cat(Sys.getenv("R_LIBS_USER"))'`

Best,
Rasmus