R: Updating .libPaths() on Ubuntu -


i trying follow advice here & here, update location r looks installed packages. have updated variable .library.site in /etc/r/rprofile.site file include location of intended r package library directory:

sys.setenv(".library.site" = "~/appdata/r/x86_64-pc-linux-gnu-library/")  

however, when start r, , .libpaths() location not appended list of library locations. why?

three answers:

  1. your approach wrong. .libpath() r function, not environment variable. above above cannot work.

  2. per consensus (some members of) r core, have been setting path 3 location since circa 2003 debian / ubuntu. done below /etc/r/ , saw it.

  3. the easiest set per-user directory via r_libs_user typically comment-out users on machine have consistent paths. can set either in global renviron, or in global renviron.site (better) or in ~/.renviron (probably best). via r_libs_user="~/appdata/r/x86_64-pc-linux-gnu-library/".


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -