[R-SIG-Mac] Packages not installing to user space

Simon Urbanek simon.urbanek at r-project.org
Tue Oct 7 15:45:47 CEST 2008


Russell,

On Oct 6, 2008, at 12:39 , Almond, Russell wrote:

> 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:
>
>> library(coda)
> Error in library(coda) : there is no package called 'coda'
>
> Additionally, .libPaths() only returns the system library, nothing  
> in my
> home directory.
>
>> .libPaths()
> [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).
>

That is in fact the default. (I.e. the default is 'enabled' if you  
don't have admin privileges). You probably had admin privileges when  
first running the GUI so is was disabled for you.

Cheers,
Simon


>    --Russell Almond
>> sessionInfo()
> R version 2.7.2 (2008-08-25)
> i386-apple-darwin8.11.1
>
> locale:
> en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] RMySQL_0.6-1    DBI_0.2-4       coda_0.13-3     lattice_0.17-13
>
> loaded via a namespace (and not attached):
> [1] grid_2.7.2  tools_2.7.2
>
>
> --------------------------------------------------
> This e-mail and any files transmitted with it may contai...{{dropped: 
> 9}}
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>



More information about the R-SIG-Mac mailing list