Skip to content

Problem with BiocManager connection to Internet under Windows: problem solved #186

Description

@lokapal

For all, whom it may concern - I found the solution what to do, if your R is writing something like:

> BiocManager::install(version="3.14")
Error: Bioconductor version cannot be validated; no internet connection?
In addition: Warning messages:
1: In file(con, "r") :
  InternetOpenUrl failed: 'A connection with the server could not be established'
2: In file(con, "r") :
  InternetOpenUrl failed: 'A connection with the server could not be established'

or (to check Internet connectivity):

> config <- "https://bioconductor.org/config.yaml"
>  readLines(config)
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
  InternetOpenUrl failed: 'A connection with the server could not be established'

whereas install.packages working correctly. The solution is:

  1. Put to your .Renviron string
CURL_SSL_BACKEND=openssl
  1. Put to your .Rprofile string
options(download.file.method="libcurl", url.method="libcurl")

and restart R.
All should be working now!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions