An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20080520/81ca9435/attachment.pl>
lib location different between GUI and terminal?
5 messages · Simon Urbanek, Ingmar Visser
On May 20, 2008, at 11:05 AM, Ingmar Visser wrote:
Hi all, I just installed a package using the GUI and install.packages( etc) The I opened the terminal and ran R from there and tried to load the package which returned with an error saying the package was not available which seemed strange to me. ?install.packages says that the default location for installing packages is .libPaths()[1] but this turns out to be different in the GUI: "/Users/ivisser/Library/R/2.7/library"
Apparently you told the GUI to set it, see R -> Preferences -> Startup -> Default Library Paths That setting is often used by users that either don't have admin privileges or want to keep their set of packages separate from the system ones. The default is off, so you must have enabled it at some point. Cheers, Simon
then when R is run from the terminal, which gives:
.libPaths()[1]
[1] "/Library/Frameworks/R.framework/Resources/library" Is this caused by my settings or is this default behavior? (I don't remember ever having this problem before). Best, Ingmar Ingmar Visser Department of Psychology, University of Amsterdam Roetersstraat 15 1018 WB Amsterdam The Netherlands t: +31-20-5256723 [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
I did not do anything of the sorts, unless it was subconsciously, I had just freshly installed 2.7.0 Could it be accidentally set somehow? Through the package installer menu? Just wild guesses here ... Best, Ingmar
On May 20, 2008, at 5:22 PM, Simon Urbanek wrote:
On May 20, 2008, at 11:05 AM, Ingmar Visser wrote:
Hi all, I just installed a package using the GUI and install.packages( etc) The I opened the terminal and ran R from there and tried to load the package which returned with an error saying the package was not available which seemed strange to me. ?install.packages says that the default location for installing packages is .libPaths()[1] but this turns out to be different in the GUI: "/Users/ivisser/Library/R/2.7/library"
Apparently you told the GUI to set it, see R -> Preferences -> Startup -> Default Library Paths That setting is often used by users that either don't have admin privileges or want to keep their set of packages separate from the system ones. The default is off, so you must have enabled it at some point. Cheers, Simon
then when R is run from the terminal, which gives:
.libPaths()[1]
[1] "/Library/Frameworks/R.framework/Resources/library" Is this caused by my settings or is this default behavior? (I don't remember ever having this problem before). Best, Ingmar Ingmar Visser Department of Psychology, University of Amsterdam Roetersstraat 15 1018 WB Amsterdam The Netherlands t: +31-20-5256723 [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
On May 20, 2008, at 5:22 PM, Simon Urbanek wrote:
On May 20, 2008, at 11:05 AM, Ingmar Visser wrote:
Hi all, I just installed a package using the GUI and install.packages( etc) The I opened the terminal and ran R from there and tried to load the package which returned with an error saying the package was not available which seemed strange to me. ?install.packages says that the default location for installing packages is .libPaths()[1] but this turns out to be different in the GUI: "/Users/ivisser/Library/R/2.7/library"
Apparently you told the GUI to set it, see R -> Preferences -> Startup -> Default Library Paths That setting is often used by users that either don't have admin privileges or want to keep their set of packages separate from the system ones. The default is off, so you must have enabled it at some point.
Dear Simon and R mac fans, After unsetting the default library paths option in the preferences I get: > .libPaths()[1] [1] "/Library/Frameworks/R.framework/Versions/2.6/Resources/library" And in the terminal I get: > .libPaths() [1] "/Library/Frameworks/R.framework/Resources/library" After freshly installing 2.7.0 I get in the GUI: > .libPaths() [1] "/Library/Frameworks/R.framework/Versions/2.7/Resources/library" And after setting the default lib path in the preferences pane: [1] "/Users/ivisser/Library/R/2.7/library" [2] "/Library/Frameworks/R.framework/Versions/2.7/Resources/library" And in the terminal: > .libPaths() [1] "/Library/Frameworks/R.framework/Resources/library" In the package install menu the default checked option is at "System level" meaning in the R framework but it seems that that could still be one of two possible paths, ie the versioned path from the GUI or the unversioned path from the terminal. Best, Ingmar
On May 20, 2008, at 1:43 PM, Ingmar Visser wrote:
On May 20, 2008, at 5:22 PM, Simon Urbanek wrote:
On May 20, 2008, at 11:05 AM, Ingmar Visser wrote:
Hi all, I just installed a package using the GUI and install.packages( etc) The I opened the terminal and ran R from there and tried to load the package which returned with an error saying the package was not available which seemed strange to me. ?install.packages says that the default location for installing packages is .libPaths()[1] but this turns out to be different in the GUI: "/Users/ivisser/Library/R/2.7/library"
Apparently you told the GUI to set it, see R -> Preferences -> Startup -> Default Library Paths That setting is often used by users that either don't have admin privileges or want to keep their set of packages separate from the system ones. The default is off, so you must have enabled it at some point.
Dear Simon and R mac fans, After unsetting the default library paths option in the preferences I get:
.libPaths()[1]
[1] "/Library/Frameworks/R.framework/Versions/2.6/Resources/library" And in the terminal I get:
.libPaths()
[1] "/Library/Frameworks/R.framework/Resources/library" After freshly installing 2.7.0 I get in the GUI:
.libPaths()
[1] "/Library/Frameworks/R.framework/Versions/2.7/Resources/library" And after setting the default lib path in the preferences pane: [1] "/Users/ivisser/Library/R/2.7/library" [2] "/Library/Frameworks/R.framework/Versions/2.7/Resources/library" And in the terminal:
.libPaths()
[1] "/Library/Frameworks/R.framework/Resources/library" In the package install menu the default checked option is at "System level" meaning in the R framework but it seems that that could still be one of two possible paths, ie the versioned path from the GUI or the unversioned path from the terminal.
They are both the same. The unversioned path is just a symlink to the versioned path. The "real" location is always the versioned path. Cheers, Simon