[Rd] install.packages() fails if .libPaths() set
Uwe Ligges
ligges at statistik.tu-dortmund.de
Tue Oct 30 14:55:54 CET 2012
On 29.10.2012 23:35, Hadley Wickham wrote:
> Reproducible example:
>
> dir.create("test")
> .libPaths("test")
> install.packages("relations", type = "source")
>
> Fails with:
>
> ...
> * installing *source* package ‘relations’ ...
> ...
> ** testing if installed package can be loaded
> *** arch - i386
> Error : package ‘sets’ required by ‘relations’ could not be found
> Error: loading failed
> Execution halted
> *** arch - x86_64
> Error : package ‘sets’ required by ‘relations’ could not be found
> Error: loading failed
> Execution halted
> ERROR: loading failed for ‘i386’, ‘x86_64’
>
> If I don't set .libPaths() it installs without error.
Yes, since your package set is installed in a library that is not
"test". And you have omitted that library from the search path by
changing .libPaths().
Uwe Ligges
>
> This is on a fairly recent version of R-devel (Oct 3) and on R 2.15.1
>
> Hadley
>
More information about the R-devel
mailing list