callr-org / website

http://callr.org
6 stars 0 forks source link

CLEANUP: Less messages for non-interactive sessions #4

Closed HenrikBengtsson closed 9 years ago

HenrikBengtsson commented 9 years ago

Installing in a non-interactive session gives lots of unnecessary output, e.g.

cclc01{henrik}: Rscript -e "source('http://callr.org/install#PSCBS,cghFLasso')"
Installing/updating packages: 'PSCBS', 'cghFLasso'
cairoDevice :
 Version 2.21 installed in /cbc/henrik/R/x86_64-unknown-linux-gnu-library/3.1
 Version 2.22 available at http://cran.r-project.org
Update (y/N/c)?
mgcv :
 Version 1.8-5 installed in /cbc/henrik/R/x86_64-unknown-linux-gnu-library/3.1
 Version 1.8-6 available at http://cran.r-project.org
Update (y/N/c)?
lattice :
 Version 0.20-30 installed in /home/shared/cbc/software_cbc/R/R-3.1.3-20150309/lib64/R/library
 Version 0.20-31 available at http://cran.r-project.org
Update (y/N/c)?

Package updates:
          Previous Current
cghFLasso    0.2-1   0.2-1
PSCBS       0.44.0  0.44.0

Packages installed/updated. Load them by:

 library('PSCBS')
 library('cghFLasso')

TASK: Drop some of these outputs when interactive() is FALSE.

HenrikBengtsson commented 9 years ago

Fixed, e.g.

[HB-X201]{hb}: Rscript -e "source('http://callr.org/install#PSCBS,cghFLasso')"
Installing/updating packages: 'PSCBS', 'cghFLasso'
Installing packages from package repositories:
Installing package into 'C:/Users/hb/R/win-library/3.2'
(as 'lib' is unspecified)
trying URL 'http://cran.r-project.org/bin/windows/contrib/3.2/cghFLasso_0.2-1.zip'
Content type 'application/zip' length 181591 bytes (177 KB)
==================================================
downloaded 177 KB

package 'cghFLasso' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\hb\AppData\Local\Temp\Rtmp8imKct\downloaded_packages

Package updates:
             Previous     Current
cghFLasso        <NA>       0.2-1
PSCBS     0.44.0-9000 0.44.0-9000

Packages installed/updated.