Re: [Rd] Using custom R_LIBS with R CMD install

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Wed, 08 Feb 2012 19:26:04 +0100

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?

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 Received on Wed 08 Feb 2012 - 18:39:57 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 08 Feb 2012 - 19:20:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive