git - Install R package from Atlassian Stash -
i made r package hosted on employer's instance of atlassian stash. have been telling other users clone repo , use devtools::install("<path-to-repo>") install package.
how can have users install package without cloning repository? can without hosting code somewhere more accessible?
using this solution starting point, discovered can use devtools stash ssh url:
devtools::install_git("ssh://git@stash.yourdomain.com:1234/project/repo.git") that install latest commit on master branch. can install specific branch:
devtools::install_git("ssh://git@stash.yourdomain.com:1234/project/repo.git", branch="develop") or tag:
devtools::install_git("ssh://git@stash.yourdomain.com:1234/project/repo.git", branch="v1.0") (note don't need tags/ prefix when using tag)
this work if have ssh keys machine on stash account. using http clone url not work, because can't authenticate properly.
Comments
Post a Comment