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

后端 未结 3 518
余生分开走
余生分开走 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 04:56

    You could try a combination of the devtools and getPass packages.

    https://github.com/wrathematics/getPass

    devtools::install_git(
      "https://gitlab.com/foo/bar.git", 
      credentials = git2r::cred_user_pass("uname", getPass::getPass())
    )
    

    Where uname is your Gitlab user name.

提交回复
热议问题