使用remotes安装Git仓库中的R包时出现file.exists(src) is not TRUE错误的解决求助
使用remotes安装Git仓库中的R包时出现file.exists(src) is not TRUE错误的解决求助
大家好,我最近参照教程创建了一个R包,并且成功推送到了公司的TFS Git仓库里,结果现在安装这个包的时候碰上个棘手的问题,折腾半天没搞定,想请各位帮忙分析下。
我是按照R包托管到Git仓库的常规流程操作的,目前包所在的Git仓库地址是https://tfs.mygitserver.com/_git/packagename。
为了安装这个包,我用了remotes包,执行的代码如下:
library("remotes") remotes::install_git("https://tfs.mygitserver.com/_git/packagename")
但运行后直接报错了,完整的错误输出是:
Downloading git repo https://tfs.mygitserver.com/_git/packagename '/usr/bin/git' clone --depth 1 --no-hardlinks https://tfs.mygitserver.com/_git/packagename /tmp/RtmpCeNkBW/file649463b0480f7 Cloning into '/tmp/RtmpCeNkBW/file649463b0480f7'... Error: Failed to install 'unknown package' from Git: file.exists(src) is not TRUE
我特意去Google上搜了这个错误提示,但是没找到能对应上的原因,完全不知道问题出在哪。
有没有朋友遇到过类似的情况?或者能帮我分析下这个错误的根源,以及对应的解决办法?麻烦大家了,谢谢!
备注:内容来源于stack exchange,提问作者user3516915
相关产品推荐
相关产品推荐

