From edd at debian.org  Wed Feb  8 19:43:51 2012
From: edd at debian.org (Dirk Eddelbuettel)
Date: Wed, 8 Feb 2012 12:43:51 -0600
Subject: [Rd] Using custom R_LIBS with R CMD install
In-Reply-To: <4F32BE3C.8050304@statistik.tu-dortmund.de>
References: <CABdHhvELJ6SDQ0qSfGrxn-Rju1-=8Vr0=1QQ6bvQKxgHQZ_JQw@mail.gmail.com>
	<4F32BE3C.8050304@statistik.tu-dortmund.de>
Message-ID: <20274.49767.550788.274014@max.nulle.part>


On 8 February 2012 at 19:26, Uwe Ligges wrote:
| 
| 
| On 07.02.2012 19:13, Hadley Wickham wrote:
| > Hi all,
| >
| > Am I using the correct syntax to set a custom R_LIBS when running R
| > CMD INSTALL from the command line?
| >
| > I get:
| >
| > R_LIBS=/Users/hadley/R-dev R CMD INSTALL aL3xa-rapport-08e68ca/
| > # Desktop : R_LIBS=/Users/hadley/R-dev R CMD INSTALL aL3xa-rapport-08e68ca/
| > # * installing to library ?/Users/hadley/R?
| > # ERROR: dependency ?ascii? is not available for package ?rapport?
| 
| 
| I wonder it works that far. It won't for me on Windows nor Linux, 
| because system2 passes the whole thing shQuoted to the shell. Hence it 
| is highly shell dependent what happens with the ill formed command.
| 
| Whay not specify --library= in R CMD INSTALL if you are calling it 
| programatically from R anyway?

AFAICT Hadley is concerned about a library _source_ directory (for something
the package under development needs to run / load) rather than a _destination_.

Dirk
 
| Uwe
| 
| > But:
| >
| > ls /Users/hadley/R-dev/
| > # HandyStuff animation  biOps      mcmcTools  mvbutils   quantreg   testthat
| > # SparseM    ascii      ggplot2    mturkr     nstest     scales     whisker
| >
| > (I'm actually running this from inside R using system2, but I think
| > this is the essence of my misunderstanding)
| >
| > Hadley
| >
| 
| ______________________________________________
| R-devel at r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
"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