Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 GitLab 上,我从具有许多功能的包 (Rstudio) 的主分支构建了一个分支。我可以通过 install_git(),install_gitlab() 使用 master 分支中的代码。但是,我如何才能访问非 master 分支中的包?我应该在代码中写什么?
对于devtools::install_github,您可以使用repo具有以下语法的参数:username/repo[/subdir][@ref|#pull],根据文档。
devtools::install_github
repo
username/repo[/subdir][@ref|#pull]