source(biocLite.R) leads to this error >>> Peer certificate cannot be authenticated with given CA certificates
1
0
Entering edit mode
jol.espinoz ▴ 40
@jolespinoz-11290
Last seen 3 months ago

I'm trying to use `BioConductor` with my `R` installed through `conda`. 

 

I get this error:

```

jespinozlt-osx:~ jespinoz$ which R
/Users/jespinoz/anaconda/bin/R
jespinozlt-osx:~ jespinoz$ R

R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin11.0.0 (64-bit)

> source("https://bioconductor.org/biocLite.R")
Error in file(filename, "r", encoding = encoding) :
  cannot open connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
  URL 'https://bioconductor.org/biocLite.R': status was 'Peer certificate cannot be authenticated with given CA certificates'

```

biocinstaller installation install source conda • 2.3k views
ADD COMMENT
0
Entering edit mode
@martin-morgan-1513
Last seen 4 days ago
United States

I guess a minimal reproducible example is file("https://bioconductor.org/biocLite.R"). I don't think it's a problem with Bioconductor's certificates, but instead that libcurl (the default method for https) is not finding the CA certificates bundle. I don't know whether this is influenced by your anaconda or not, and if it is I don't have any suggestions.

You could try curl -I https://bioconductor.org/biocLite.R from the command line. If that fails then the task is to get an updated CA certificate bundle in the right location for cURL.

A work-around is to use http: rather than https, but that's not a very good idea.

ADD COMMENT
0
Entering edit mode

I tried http and was getting the same problem :( when I get back to my computer I will try the curl method.  Using R w/ conda is a little buggy. 

ADD REPLY
0
Entering edit mode

Try also options(useHTTPS=FALSE) with the http:// url. 

ADD REPLY
0
Entering edit mode

I didn't get an error when I ran the `curl` line but I'm getting that my `R` version isn't compatible with `biocLite`

> options(useHTTPS=FALSE)

> source("http://bioconductor.org/biocLite.R")
Warning: unable to access index for repository https://bioconductor.org/packages/3.3/bioc/src/contrib:
  cannot download all files
'biocLite.R' failed to install 'BiocInstaller', use
  'install.packages("BiocInstaller",
  repos="https://bioconductor.org/packages/3.3/bioc")' or
  'install.packages("BiocInstaller",
  repos="http://bioconductor.org/packages/3.3/bioc")'
Warning message:
package ‘BiocInstaller’ is not available (for R version 3.3.1)
ADD REPLY
0
Entering edit mode

Does the suggestion to

options(useHTTPS=FALSE)
install.packages("BiocInstaller", repos="http://bioconductor.org/packages/3.3/bioc")

get BiocInstaller installed, and biocLite() install default packages?

ADD REPLY

Login before adding your answer.

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