On Dec 25, 2017, at 2:36 PM, Michael Hall <mik3hall at gmail.com> wrote:
On Dec 25, 2017, at 4:31 PM, David Winsemius <dwinsemius at comcast.net> wrote:
On Dec 25, 2017, at 1:39 PM, Michael Hall <mik3hall at gmail.com> wrote:
On Dec 25, 2017, at 3:37 PM, David Winsemius <dwinsemius at comcast.net> 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?