gpt4 book ai didi

r - 运行 devtools::release() 以准备在 R 中发布包时 git 检查时出错

转载 作者:行者123 更新时间:2023-12-04 11:02:06 25 4
gpt4 key购买 nike

我正在尝试使用 devtools::release() 将软件包发布到 CRAN .每当我到达 Running Git checks... 的步骤时我收到一个错误。

── Running Git checks for fitzRoy ───────────────────────────────────────────────────────────────────────
Current branch: master
Checking uncommitted files... OK
Checking synchronisation with remote branch...
ERROR: Error in 'git2r_remote_fetch': unsupported URL protocol

我在 Mac 上。我一直在很好地使用 Git 来处理这个包,并且没有任何戏剧性的提交、插入和拉动。

我试过更新 devtools、git2r 并安装最新版本的 Git,但没有任何运气。

有什么建议?

最佳答案

更新 - 找到答案 here .

基本上 - 你需要安装 libssh2 .在 Mac 上,我按照说明操作 here .

然后我不得不重新安装 git2r通过运行以下命令为 R 打包

install.packages("git2r", type = "source")

这样做并重新启动 R 后,错误消失了。

关于r - 运行 devtools::release() 以准备在 R 中发布包时 git 检查时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58741498/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com