How to use a customized directory location for installing R packages -


i running rstudio 0.97 r 3.0.1 on windows 8.1. installed lot of packages through rstudio , went "\r\r-3.0.1\library". installed r 3.1.0 , set rstudio use new version of r. found packages inaccessible rstudio.

how make packages in shared folder different versions of r on pc can use them?

i tried use .libpaths("xxxx package sharefolder") set sharefolder storing , installing new packages, works in session when restart rstudio, path reset. didn't work.

first, mkdir ~/whatever-you-want if necessary.

second, add r_libs_user="~/whatever-you-want" '~/.renviron'.

so, if want reuse \r\r-3.0.1\library mentioned, add r_libs_user="\r\r-3.0.1\library" '~/.renviron'. if using windows, put .renviron in c:\users\<user-name>\.

hope helps.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -