Reputation: 937
Trying to install R packages from an artifactory server. The CRAN plug in is installed, I can curl the contents using the default CA on the VM however when running this command:
install.packages("*PACKAGE*", repos="*ARTIFACTORY SERVER*")
I get the following output:
Installing package into ‘/home/qbeadmin/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
curl: (60) Peer's Certificate issuer is not recognized.
More details here: http://curl.haxx.se/docs/sslcerts.html
This looks like R Server is not using the default ca-bundle.crt but i dont know how to configure this
Thanks in advance,
Kind Regards
Upvotes: 2
Views: 4595
Reputation: 20376
You can configure the location of the CA bundles used by cURL by the setting the CURL_CA_BUNDLE environment variable in the Renviron file.
This is documented in the download.file documentation.
Upvotes: 5
Reputation: 3174
As an alternative, you can download the package first, and install it. For example with Cairo package :
curl -kO https://cran.r-project.org/src/contrib/Cairo_1.5-8.tar.gz
R CMD INSTALL Cairo_1.5-8.tar.gz
Upvotes: 1