Skip to content
Back to formatted view

Raw Message

Message-ID: <80B63981-C07A-40D0-BF7F-69C87461D7BA@comcast.net>
Date: 2017-12-25T23:01:19Z
From: David Winsemius
Subject: .libPaths
In-Reply-To: <AEF66DE4-D116-41B8-940F-4FF2CE0609F1@gmail.com>

> 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?

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





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20171225/2b91e4ee/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.png
Type: image/png
Size: 15138 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20171225/2b91e4ee/attachment-0001.png>