From h.wickham at gmail.com  Tue Oct 30 15:01:53 2012
From: h.wickham at gmail.com (Hadley Wickham)
Date: Tue, 30 Oct 2012 09:01:53 -0500
Subject: [Rd] install.packages() fails if .libPaths() set
In-Reply-To: <508FDC6A.30502@statistik.tu-dortmund.de>
References: <CABdHhvHhi_paqqK1wUhqcg0KqOeh2YTHX-FszNHwhFYbZfb5wg@mail.gmail.com>
	<508FDC6A.30502@statistik.tu-dortmund.de>
Message-ID: <CABdHhvGB+-Hx1a_K6g7YnEYvNTP1DhgAGtPNfErP0ZtueJo9Hw@mail.gmail.com>

>> * 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().

I'm not sure I follow. I thought install.packages() installs into the
first element of .libPaths(), and indeed I get this message:

Installing package into ?/Users/hadley/Desktop/test?
(as ?lib? is unspecified)

Hadley


-- 
RStudio / Rice University
http://had.co.nz/



[Rd] install.packages() fails if .libPaths() set
Hadley Wickham