Skip to content

R CMD INSTALL writes to stderr

3 messages · Mark Cowley, Simon Urbanek

#
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
#
Thanks for the tip Simon,
i've just written a simplified version of install.packages -- install.package.file which will silently R CMD INSTALL a package, assuming you've already downloaded it & if there's an installation problem, the R CMD INSTALL output is spat to stderr. Code available if anyone's interested

cheers,
Mark
On 11/10/2011, at 12:23 PM, Simon Urbanek wrote: