This function is vectorised so you can install multiple packages in a single command.
install_bitbucket(repo, ref = "master", subdir = NULL, auth_user = NULL,
password = NULL, ...)
Repository address in the format
username/repo[/subdir][@ref|#pull]
. Alternatively, you can
specify subdir
and/or ref
using the respective parameters
(see below); if both is specified, the values in repo
take
precedence.
Desired git reference; could be a commit, tag, or branch name. Defaults to master.
subdirectory within repo that contains the R package.
your account username if you're attempting to install
a package hosted in a private repository (and your username is different
to username
)
your password
Other arguments passed on to install.packages
.
Bitbucket API docs: https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html
# NOT RUN {
install_bitbucket("sulab/mygene.r@default")
install_bitbucket("dannavarro/lsr-package")
# }
Run the code above in your browser using DataLab