打开本地 Git Bash 窗口,将自己的 cacert.pem 文件路径替换上去。
cacert.pem 文件路径 D:\R\R-4.0.4\library\openssl\cacert.pem
windows转换为git 输入 D:/R/R-4.0.4/library/openssl/cacert.pem
git bash的安装
打开git bash 窗口
$ git init
$ git config --global http.sslBackend "openssl"
$ git config --global http.sslCAInfo D:/R/R-4.0.4/library/openssl/cacert.pem
结束后,返回R语言界面。
library(devtools)
install_github("example")
library(example)
问题解决!