具有已存储git凭证的`devtools :: install_git()`

时间:2019-04-25 18:12:34

标签: r devtools

当前使用install_git()从受Azure Active Directory保护的存储库中安装会导致错误:

> 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凭证管理器中的凭证进行安装?

1 个答案:

答案 0 :(得分:1)

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