Hi, I've just discovered R keeps installing my packages into C:\Users\Ben instead of "C:\\Users\\Ben;/R/win-library/2.12" which is what is returned by running Sys.getenv("R_LIBS_USER"). I've tried setting environment variables in windows control panel of R_LIBS. But nothing seems to be working, it still wants to fill my user folder, I've tried uninstalling and re-installing but it still does the same thing. Does anybody know how I can fix this? Thanks, Ben W. [[alternative HTML version deleted]]
Hi Ben, I could be completely off target (corrections welcome if I am), but I think the semicolon in the environment variable is making two separate paths and maybe R chooses the first? It should be easy to try changing. HTH, Josh (and sorry for the wild goose hunt if my memory is shoddy) On Sat, Mar 19, 2011 at 9:37 AM, Ben Ward <benjamin.ward at bathspa.org> wrote:> Hi, I've just discovered R keeps installing my packages into > C:\Users\Ben instead of "C:\\Users\\Ben;/R/win-library/2.12" which is > what is returned by running Sys.getenv("R_LIBS_USER"). > > > I've tried setting environment variables in windows control panel of > > R_LIBS. > > > But nothing seems to be working, it still wants to fill my user folder, > I've tried uninstalling and re-installing but it still does the same > thing. Does anybody know how I can fix this? > > Thanks, > Ben W. > > > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
On Mar 19, 2011, at 17:37 , Ben Ward wrote:> Hi, I've just discovered R keeps installing my packages into > C:\Users\Ben instead of "C:\\Users\\Ben;/R/win-library/2.12" which is > what is returned by running Sys.getenv("R_LIBS_USER"). >Er, I'm rusty on Windows, but that's what it is supposed to do, isn't it? It's a path with two semicolon separated directories. -- Peter Dalgaard Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
Maybe Matching Threads
- How best to set library search path so user libraries come first
- R CMD check --as-cran attempts to hide R_LIBS_USER but fails
- R CMD check --as-cran attempts to hide R_LIBS_USER but fails
- Windows 7 and .libPaths()
- change default path for installing r-cran packages by sudo apt r-cran...?