Installing non-public packages from Gitlab using devtools::install_git

后端 未结 3 521
余生分开走
余生分开走 2020-12-08 04:49

My institution recently installed GitLab for us. I\'ve figured out how to install R packages from the GitLab server using devtools::install_git and it works as

3条回答
  •  孤城傲影
    2020-12-08 05:07

    Per Ciro's comment, authenticating using

    https://user:password@domain.com/user/repo.git
    

    does the trick. So the complete call would be

    devtools::install_git('https://user:password@mini-me2.lerner.ccf.org/nutterb/modeltable.git')
    

    Please note that there may be security concerns with passing the user name and password this way. I'm not completely educated on those concerns. This works well enough for my purposes because I am authenticated on my company's network to even see the GitLab server.

提交回复
热议问题