On 13-09-24 10:37 AM, Jeroen Ooms wrote:
On Mon, Sep 23, 2013 at 6:50 PM, Duncan Murdoch
<murdoch.dun...@gmail.com> wrote:
x <- system2("Rscript", "-e \"install.packages('MASS',
repos='http://probability.ca/cran')\"", stdout=TRUE, stderr=TRUE)

Thank you, this suggestion seems to work (although I agree that
starting 3 procs to install a single package seems suboptimal).


For something that I only do every few weeks or months, I'd rather optimize the use of the programmer's time than that of the processor. I get paid more per hour!

Duncan Murdoch

 One
additional question: is it safe to assume that the "Rscript"
executable can always be found by the R process (cross platform), or
do I need to modify the example in case Rscript is not in the system
search path?


______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to