Re: [R-SIG-Mac] .libPaths
> On Dec 25, 2017, at 5:09 PM, Michael Hallwrote: > > >> On Dec 25, 2017, at 5:01 PM, David Winsemius wrote: >> >> >>> >> >> My guess is that you are running the R.app GUI and have not unchecked the >> default settings in the Startup panel of Preferences: > > Correct that this from the app. It is also consistent with what RStudio shows > for .libPaths. > The preferences item, however, is unchecked. > I just tried setting it. Exiting the app. Going back in, unchecking it. > Exiting the app. > After going back in the user lib was still there. What did work was this from Terminal… rm -r /Users/mjh/Library/R/3.4/library apparently eliminating it from .libPaths with this… paths <- paths[dir.exists(paths)] ? I had tried removing everything from the directory at one point but then I did a mkdir for the directory itself thinking it would do no harm at least having it there. But apparently it can be a problem if it even exists it then seems to become the default period? ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] .libPaths
> On Dec 25, 2017, at 2:36 PM, Michael Hallwrote: > > >> On Dec 25, 2017, at 4:31 PM, David Winsemius wrote: >> >> >>> On Dec 25, 2017, at 1:39 PM, Michael Hall wrote: >>> >>> On Dec 25, 2017, at 3:37 PM, David Winsemius wrote: .libPaths() <- "/Library/Frameworks/R.framework/Versions/3.4/Resources/library" >>> >>> .libPaths() <- >>> "/Library/Frameworks/R.framework/Versions/3.4/Resources/library" >>> Error in .libPaths() <- >>> "/Library/Frameworks/R.framework/Versions/3.4/Resources/library" : >>> invalid (NULL) left side of assignment >> >> Sorry. Make that: >> >> .libPaths("/Library/Frameworks/R.framework/Versions/3.4/Resources/library”) > > I think that works for the session but it’s not persistent. > Given .libPaths as… > > .libPaths > function (new) > { >if (!missing(new)) { >new <- Sys.glob(path.expand(new)) >paths <- c(new, .Library.site, .Library) >paths <- paths[dir.exists(paths)] >.lib.loc <<- unique(normalizePath(paths, "/")) >} >else .lib.loc > } > > You might notice > paths <- c(new, .Library.site, .Library) > always tacks that on anyhow. > > .Library > [1] "/Library/Frameworks/R.framework/Resources/library” > > so that > .libPaths(“”) > might make more sense and also works. > But it is still not persistent. Leave the app and get back in and it’s back > to including the user lib. > How do I persistently get rid of that? My guess is that you are running the R.app GUI and have not unchecked the default settings in the Startup panel of Preferences: > > David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.' -Gehm's Corollary to Clarke's Third Law ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] .libPaths
> On Dec 25, 2017, at 1:39 PM, Michael Hallwrote: > > >> On Dec 25, 2017, at 3:37 PM, David Winsemius wrote: >> >> .libPaths() <- >> "/Library/Frameworks/R.framework/Versions/3.4/Resources/library" > > .libPaths() <- > "/Library/Frameworks/R.framework/Versions/3.4/Resources/library" > Error in .libPaths() <- > "/Library/Frameworks/R.framework/Versions/3.4/Resources/library" : > invalid (NULL) left side of assignment Sorry. Make that: .libPaths("/Library/Frameworks/R.framework/Versions/3.4/Resources/library") -- David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.' -Gehm's Corollary to Clarke's Third Law ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac