简体   繁体   English

R服务器:install.packages()证书错误

[英]R Server: install.packages() certificate error

Trying to install R packages from an artifactory server. 尝试从人工服务器安装R软件包。 The CRAN plug in is installed, I can curl the contents using the default CA on the VM however when running this command: 已安装CRAN插件,我可以使用VM上的默认CA卷曲内容,但是在运行以下命令时:

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 看起来R Server没有使用默认的ca-bundle.crt,但是我不知道如何配置它

Thanks in advance, 提前致谢,

Kind Regards 亲切的问候

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. 您可以通过在Renviron文件中设置CURL_CA_BUNDLE环境变量来配置cURL使用的CA捆绑软件的位置。
This is documented in the download.file documentation. download.file文档中对此进行了记录。

As an alternative, you can download the package first, and install it. 或者,您可以先下载软件包并安装。 For example with Cairo package : 例如,使用Cairo软件包:

curl -kO https://cran.r-project.org/src/contrib/Cairo_1.5-8.tar.gz
R CMD INSTALL Cairo_1.5-8.tar.gz

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM