簡體   English   中英

從 github 組織擁有的私有倉庫安裝 R 包

[英]install R package from private repo owned by github organisation

我不確定如何安裝我在組織擁有的私人存儲庫上托管的 R 包。 以前,repo 由我自己擁有,作為個人用戶,我可以使用個人訪問令牌和 devtools::install_github 的“auth_token”參數。 據我所知,這對於組織(github 團隊)來說是不可能的。 還有其他可行的解決方案嗎?

謝謝

您可以嘗試改用install_git

為確保正確設置憑據,請嘗試在 shell 中單獨使用 git 進行存儲庫克隆嘗試:

$ git clone ssh://git@bitbucket.org/username/repository.git  

然后在 R 中嘗試安裝包:

R> devtools::install_git('ssh://git@bitbucket.org/username/repository.git')

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM