Prevent "New version" message to appear
1
1
Entering edit mode
nick ▴ 10
@nick-10781
Last seen 6.8 years ago

How can you prevent the following message from displaying in the console?

I've tried both suppressMessages and suppressStartUpMessages with no success.

"​Bioconductor version 3.4 (BiocInstaller 1.24.0), ?biocLite for help

A new version of Bioconductor is available after installing the most recent
  version of R; see http://bioconductor.org/install"

package • 1.1k views
ADD COMMENT
2
Entering edit mode
@martin-morgan-1513
Last seen 4 months ago
United States

I guess you're trying

> suppressMessages(library(BiocInstaller))

or

> suppressMessages(source("https://bioconductor.org/biocLite.R"))
> sessionInfo()
R version 3.3.2 Patched (2017-02-14 r72175)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] BiocInstaller_1.24.0

Both 'work for me', so can you provide additional information, e.g., about your sessionInfo() and how (e.g., in RStudio?) you're seeing the message?

ADD COMMENT
0
Entering edit mode

You're right. I was looking for the problem in the wrong place. I though the message was appearing when launching a parallel execution of a function while actually it was due to the presence of source("https://bioconductor.org/biocLite.R") in my .Rprofile. Silly me, but thanks for helping me.

ADD REPLY

Login before adding your answer.

Traffic: 851 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6