From hadley at rice.edu  Thu Feb  9 14:32:51 2012
From: hadley at rice.edu (Hadley Wickham)
Date: Thu, 9 Feb 2012 07:32:51 -0600
Subject: [Rd] Using custom R_LIBS with R CMD install
In-Reply-To: <4F3383A7.20504@statistik.tu-dortmund.de>
References: <CABdHhvELJ6SDQ0qSfGrxn-Rju1-=8Vr0=1QQ6bvQKxgHQZ_JQw@mail.gmail.com>
	<4F32BE3C.8050304@statistik.tu-dortmund.de>
	<CABdHhvFdJsRDz3xehivG2vm+0Z=wVtm4gviNp9yh5RLex24WNg@mail.gmail.com>
	<4F32C764.1070400@statistik.tu-dortmund.de>
	<CABdHhvEyt1G9Bab10vUJMfinhq4YuNtA6qoV1M-rdm67huu1kA@mail.gmail.com>
	<4F3383A7.20504@statistik.tu-dortmund.de>
Message-ID: <CABdHhvGRmWY9Qqte=iVDDcxgghUwqLcOu1a=1FcVdkLudxuuQg@mail.gmail.com>

>>
>> To clarify, system2 doesn't work in windows?
>
> It does.
>
>> The system2
>>
>> documentation has: " On Windows, ?env? is currently only supported for
>> commands such as ?R? and ?make? which accept environment variables on
>> their command line."
>
> Yes, but "R CMD INSTALL" does not accept those variables in the command
> line. This could perhaps be improved given someone finds some time to do it.

Ok, so R does, but R CMD INSTALL does not.  That was the source of my
confusion - thanks for clearing that up!

However, is there a reason that system2 doesn't use the more general
technique of Sys.setenv?

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



[Rd] Using custom R_LIBS with R CMD install
Hadley Wickham