Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages that utilize built in Curl are not able to find a certificate bundle #6

Closed
nathansoz opened this issue Oct 3, 2016 · 2 comments
Labels
Milestone

Comments

@nathansoz
Copy link
Contributor

An example:

R
install.packages("ctv")
library(ctv)
install.views("Econometrics")


I was faced with the error.
Error in url(paste(contriburl[i], "Views.rds", sep = "/"), open = "rb") : 
  cannot open connection
In addition: Warning message:
In url(paste(contriburl[i], "Views.rds", sep = "/"), open = "rb") :
  URL 'https://mran.revolutionanalytics.com/snapshot/2016-07-01/src/contrib/Views.rds': status was 'Problem with the SSL CA cert (path? access rights?)'

The issue was [reported here](https://social.msdn.microsoft.com/Forums/en-US/20c2667c-1518-4e74-8ba6-0d8ebb7da9f0/installing-views?forum=ropen&prof=required)

The solution is to modify the command to look like this:

``` R```
Sys.setenv(CURL_CA_BUNDLE = "/usr/lib64/microsoft-r/3.3/lib64/R/lib/microsoft-r-cacert.pem")
install.packages("ctv")
library(ctv)
install.views("Econometrics")
@nathansoz nathansoz added the bug label Oct 3, 2016
@nathansoz nathansoz added this to the MRO 3.3.2 milestone Oct 3, 2016
@nathansoz
Copy link
Contributor Author

Fixed merged into internal repository. Will be fixed in 3.3.2 release.

@andrie
Copy link

andrie commented Apr 8, 2018

I have found this issue recurs in MRO-3.3.3 as well as MRO-3.3.4. I tested on Ubuntu 16.04.

My workaround is to add this line of code to the Rprofile.site:

Sys.setenv(CURL_CA_BUNDLE = file.path(Sys.getenv("R_HOME"), "lib/microsoft-r-cacert.pem"))

Alternatively, you can add this line of code to Renviron:

CURL_CA_BUNDLE=${R_HOME/lib/microsoft-r-cacert.pem}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants