From ligges at statistik.tu-dortmund.de  Tue Oct 30 14:55:54 2012
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Tue, 30 Oct 2012 14:55:54 +0100
Subject: [Rd] install.packages() fails if .libPaths() set
In-Reply-To: <CABdHhvHhi_paqqK1wUhqcg0KqOeh2YTHX-FszNHwhFYbZfb5wg@mail.gmail.com>
References: <CABdHhvHhi_paqqK1wUhqcg0KqOeh2YTHX-FszNHwhFYbZfb5wg@mail.gmail.com>
Message-ID: <508FDC6A.30502@statistik.tu-dortmund.de>



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
>



[Rd] install.packages() fails if .libPaths() set
Uwe Ligges