Installing R packages on Windows 7 -


on windows 7 x64, i've got version 3.0.0 of r installed. further, i've set environment variable r_libs_user point network drive. in rgui.exe, executing:

sys.getenv("r_libs_user") 

outputs same value set above. r, installing packages personal library pointed r_libs_user works fine. far, good.

with version 0.97.551 of rstudio installed, executing same code above through rstudio outputs same value (as expected). however, rstudio, attempts @ installing packages personal library fails. error message states rstudio unable write personal library defined r_libs_user.

before posting stackoverflow, checked support forum rstudio (http://support.rstudio.org/help/discussions/problems/4608-change-personal-library-for-installing-packages) admin states problem has r , not rstudio. admin goes on reference rstudio document generated code

?.libpaths 

in rstudio ide. admin provides additional guidance through link http://support.rstudio.org/help/kb/troubleshooting/getting-help-with-r.

after reviewing ide-generated document , forum link, i've determined environment set correctly. , yet, rstudio still fails.

has been able rstudio personal library working filesystem location other defaults?

i should clarify needs bit more. environment application deployed prohibits normal users running rstudio administrators, hence focus on r_libs_user personal library. although know work, not realistic option me.

what need rstudio exclusively write r_libs_user , not attempt write r_home (my assumption of think attempting do.)

add line .libpaths("~/your-lib-path-here") .rprofile , restart r. .libpaths() lets write read the set of default libraries.

alternately, if can control installation commands (i.e. need library available doesn't have default), r commands such install.packages have lib parameter lets manually specify library install to.

you might consider using r package management system such packrat, automates job of installing application's dependencies private library without having set manually. (full disclosure, i'm contributor package.) works under rstudio.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -