From edd at debian.org  Wed Feb  8 20:21:01 2012
From: edd at debian.org (Dirk Eddelbuettel)
Date: Wed, 8 Feb 2012 13:21:01 -0600
Subject: [Rd] Using custom R_LIBS with R CMD install
In-Reply-To: <4F32C764.1070400@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>
Message-ID: <20274.51997.235294.238761@max.nulle.part>


On 8 February 2012 at 20:05, Uwe Ligges wrote:
| Anyway, this won't work under a Windows shell, I believe. At least, I do 
| not know how to set an env variable and run RCMD INSTALL in a Windows 
| shell as a one liner - independent of R.

FWIW this issue was addressed by Oleg years ago in cfunction() in his inline
package -- by using Sys.setenv() prior to calling system().  This works
in a cross-platform way, avoiding the need for special cases.

Dirk

-- 
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx



[Rd] Using custom R_LIBS with R CMD install
Dirk Eddelbuettel