Skip to content
Prev 46804 / 63424 Next

Capture output of install.packages (pipe system2)

On 13-09-23 08:20 PM, Hadley Wickham wrote:
It does seem very much more straight forward to do this in the process 
above R:

   R --vanilla --slave -e "install.packages('whatever',
    repo='http://cran.r-project.org')" >R.out  2>&1

(Omit mailer wrap.) Your mileage may vary depending on your OS.

Paul