Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
错误:无法从专用SVN服务器安装R程序包_R_Curl_Ssl Certificate_Visualsvn Server_R Package - Fatal编程技术网

错误:无法从专用SVN服务器安装R程序包

错误:无法从专用SVN服务器安装R程序包,r,curl,ssl-certificate,visualsvn-server,r-package,R,Curl,Ssl Certificate,Visualsvn Server,R Package,在我的Windows 10计算机(x64)上,我正在尝试使用给出的说明从我们的专用SVN服务器(Visual SVN服务器)安装R软件包(在R Studio)。服务器具有自签名证书。要安装软件包,我正在运行以下命令: install.packages("https://~path_to_private_SVN/trunk", repos = NULL, type = "source", method="curl", extra = "--user my_username:my_password"

在我的Windows 10计算机(x64)上,我正在尝试使用给出的说明从我们的专用SVN服务器(Visual SVN服务器)安装
R
软件包(在
R Studio
)。服务器具有自签名证书。要安装软件包,我正在运行以下命令:

install.packages("https://~path_to_private_SVN/trunk", repos = NULL, type = "source", method="curl", extra = "--user my_username:my_password")
我收到以下错误消息:

 Installing package into ‘path_to_R_library/3.5’
    (as ‘lib’ is unspecified)
    % Total    % Received % Xferd  Average Speed   Time    Time     Time Current
                                 Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.
Error in download.file(p, destfile, method, mode = "wb", ...) : 
  'curl' call had nonzero exit status

显然,
R Studio
对SVN服务器证书问题不满意,我无法安装R包。但是,现在,我想忽略SVN服务器的这个证书错误问题。有没有办法告诉
install.packages()
不要为此SVN主机执行
SSL证书验证
?我知道安装
R
软件包的另一个选项可能是
devtools::install_svn()

服务器的证书有问题,它不受信任。问题中的错误消息指定了解决步骤和解决方法。例如,您可以在
curl
中禁用证书验证:

如果要关闭curl对证书的验证,请使用 -k(或--unsecure)选项

有关在服务器上设置服务器证书的信息,请参阅