R `devtools::使用存储的git凭据安装_git()`

R `devtools::使用存储的git凭据安装_git()`,r,devtools,R,Devtools,当前使用install\u git()从受Azure Active Directory保护的repo安装会导致错误: > devtools::install_git("https://myteam.visualstudio.com/MyProject/_git/MyAwesomeRPackage") Downloading git repo https://myteam.visualstudio.com/MyProject/_git/MyAwesomeRPackage Installati

当前使用
install\u git()
从受Azure Active Directory保护的repo安装会导致错误:

> devtools::install_git("https://myteam.visualstudio.com/MyProject/_git/MyAwesomeRPackage")
Downloading git repo https://myteam.visualstudio.com/MyProject/_git/MyAwesomeRPackage
Installation failed: Error in 'git2r_clone': Unable to authenticate with supplied credentials
即使AAD凭据存储在git凭据管理器中。例如,从命令行调用该命令就可以了:

git clone https://myteam.visualstudio.com/MyProject/_git/MyAwesomeRPackage

有没有办法让R使用来自git credential manager的凭据进行此安装?

尝试使用
git
参数,例如,
git=“external”

尚未测试,但您是否尝试过
git
参数,例如,
git=“external”
?@thc感谢您的建议。遗憾的是,这没用。结果我的开发工具已经过时了。我从CRAN重新安装了最新版本的devtools,一切正常,但它确实需要使用
git=“external”
提示@thc,如果你提供这个答案,我会接受的。甜蜜、轻松的互联网积分:)