Skip to content
Prev 41454 / 63424 Next

R CMD INSTALL writes to stderr

On Oct 10, 2011, at 8:48 PM, Mark Cowley wrote:

            
It can simply with 2>&1

I agree that this doesn't help you with install.packages directly. There are various degrees of ugliness that you can apply - ranging from using INSTALL_opts to force routing to stdout, to using your own system() front-end to handle the details yourself.

Why you don't simply use a variation of system("R -e 'install.packages(...)'", ...) where you have full control over the routing and yet sill use install.packages? That is generally how custom installers do this ... It sort of seems what you are trying to do anyway since you don't want the internal R output ... 

Cheers,
Simon