I recently upgraded my computer and I'm trying an experiment in
which my
day-to-day usage account does not have admin privileges.
I'm trying to install a package (say coda) using the "At User Level"
option
and the package installer GUI. The package downloads correctly and
no error
message is reported at the console. However, when I try load the
packages,
I get an error message:
Error in library(coda) : there is no package called 'coda'
Additionally, .libPaths() only returns the system library, nothing
in my
home directory.
[1] "/Library/Frameworks/R.framework/Resources/library"
Oops. I just figured this out. There is an option in the
preferences that
add $HOME/R/x.y/library to .libPaths(). I would argue that this
needs to
be turned on by default, as most users without admin privileges will
have
difficulty finding it (I certainly took me 1/2 of poking around).