Skip to content

'install' outputs to standard output; should be standard error #2

Description

@HenrikBengtsson

The 'install' script outputs also to std. out. This renders it "useless" in report generators, since such output will clutter up the report. Should be redirected to std. err., e.g.

$ Rscript -e "source('http://callr.org/install#R.devices')" > log.out 2> log.err
$ ls -l log.*
-rwx------+ 1 4294967295 mkpasswd  201 Jan 28 11:28 log.err
-rwx------+ 1 4294967295 mkpasswd 6667 Jan 28 11:28 log.out
$ head log.out
abind :
 Version 1.4-0 installed in C:/Users/hb/R/win-library/3.2
 Version 1.4-1 available at http://R-Forge.R-project.org
Update (y/N/c)?
base64 :
 Version 1.1 installed in C:/Users/hb/R/win-library/3.2
 Version 1.2 available at http://R-Forge.R-project.org
Update (y/N/c)?
bbmle :
 Version 1.0.17 installed in C:/Users/hb/R/win-library/3.2
Installing/updating package: 'R.devices'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions