[R-SIG-Mac] .libPaths

Simon Urbanek r at dune.urbanek.info
Tue Jan 23 19:48:52 CET 2018

Disable the option in Startup (in case it's enabled), but also delete the
directory if you don't want to use it. Once it exists, it will be automatically picked up by R.


> On Dec 25, 2017, at 1:11 PM, Michael Hall <mik3hall at gmail.com> wrote:
> I seem to have somehow changed this so that for install.packages my user location is always selected in preference to the system location.
> Since I may at some point access packages from an application not connected to my user I would rather this not be the case. 
> What I now get is…
> .libPaths()
> [1] "/Users/mjh/Library/R/3.4/library"                               "/Library/Frameworks/R.framework/Versions/3.4/Resources/library"
>> install.packages("NOSUCH")
> Installing package into ‘/Users/mjh/Library/R/3.4/library’
> (as ‘lib’ is unspecified)
> Warning message:
> package ‘NOSUCH’ is not available (for R version 3.4.3) 
> So everything is default installed into my user location. This didn’t used to be the case, but I do not remember what I may of done to permanently change it and so far I can’t figure out how to permanently undo it.
> I have looked at the R Startup command, the OS X app preferences, OS X faq, environment variables, the system Resource folder, no .Rprofile is there and I didn’t figure out what be causing the setting in Renviron. 
> How do I permanently remove the user directory from .libPaths?
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

More information about the R-SIG-Mac mailing list