Error wth Installation BiocManager
1
1
Entering edit mode
hasmikmd ▴ 10
@hasmikmd-23611
Last seen 3.8 years ago

Used the code below for installation, but keep getting this error

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install()

Error: Bioconductor version cannot be validated; no internet connection?

How can this problem can be resolved?

software error • 6.3k views
ADD COMMENT
0
Entering edit mode
@martin-morgan-1513
Last seen 4 weeks ago
United States

By default, BiocManager tries to

readLines("https://bioconductor.org/config.yaml")

Please try that. If it fails, it might be that you are behind a 'proxy'; see the 'Setting Proxies' section of ?download.file

It is possible to avoid this online check, but obviously installing packages requires internet access. BiocManager can be used offline as described in the 'Offline use' section of browseVignettes(package="BiocManager")

ADD COMMENT
0
Entering edit mode

Hi, I'm getting the same error when trying to install a package Error: Bioconductor version cannot be validated; no internet connection? 1: In file(con, "r") : URL 'https://bioconductor.org/config.yaml': status was 'Couldn't connect to server' 2: In file(con, "r") : URL 'http://bioconductor.org/config.yaml': status was 'Failure when receiving data from the peer' I'm working behind a proxy, but I didn't had problems installing packages until now. I don't know what can be going wrong. I'm working in VirtualBox with Ubuntu 20.04 distribution, no problems installing R packages in Windows. Any idea?

ADD REPLY
0
Entering edit mode

Do the links work in an internet browser like chrome?

ADD REPLY
0
Entering edit mode

Yes, they work fine

ADD REPLY
1
Entering edit mode

And to be clear, does

readLines("https://bioconductor.org/config.yaml")

work? (or with http://)? If not, then it is definitely a proxy issue, but I am not sure how to tackle this other than pointing to the guidance on ?download.file. Sorry not to be more helpful.

ADD REPLY
0
Entering edit mode

No, it cannot open the connection. Anyway, thanks for your help. I'll post the answer when I fix it.

ADD REPLY
0
Entering edit mode

hi, have you fix this problem? I have also met this problem. Thank you very much.

ADD REPLY

Login before adding your answer.

Traffic: 767 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