Description Usage Arguments Value Author(s) Examples
install_bitbucket
allows users to install R packages
hosted on Bitbucket without needing to install or load the heavy
dependencies required by devtools. ghit provides a drop-in replacement that
provides (almost) identical functionality to
devtools::install_bitbucket()
. The install_bitbucket_server
interface provides some convenient default values for host
and
credentials
for corporate users.
1 2 3 4 5 6 7 8 9 10 | install_bitbucket(repo, host = "bitbucket.org", credentials = NULL,
build_args = NULL, build_vignettes = TRUE, uninstall = FALSE,
verbose = FALSE, repos = NULL, type = "source", dependencies = NA,
...)
install_bitbucket_server(repo, host = Sys.getenv("BITBUCKET_HOST"),
credentials = bitbucket_cred(), build_args = NULL,
build_vignettes = TRUE, uninstall = FALSE, verbose = FALSE,
repos = NULL, type = if (.Platform[["pkgType"]] %in% "win.binary")
"both" else "source", dependencies = c("Depends", "Imports"), ...)
|
repo |
A character vector naming one or more GitHub repository containing an R package to install (e.g., “imanuelcostigan/devtest”), or optionally a branch (“imanuelcostigan/devtest[dev]”), a reference (“imanuelcostigan/devtest@309fa0a”), tag (“imanuelcostigan/devtest@v0.1”), or subdirectory (“imanuelcostigan/samplepackage/R”). These arguments can be placed in any order and in any combination (e.g., “imanuelcostigan/devtest[master]@abc123/R”). As the use of pull request (PR) references are not supported by Bitbucket, you should install from the PR's source repository and branch. |
host |
A character string naming a host. This defaults to
|
credentials |
An argument passed to the |
build_args |
A character string used to control the package build,
passed to |
build_vignettes |
A logical specifying whether to build package
vignettes, passed to |
uninstall |
A logical specifying whether to uninstall previous
installations using |
verbose |
A logical specifying whether to print details of package building and installation. |
repos |
A character vector specifying one or more URLs for CRAN-like
repositories from which package dependencies might be installed. By
default, value is taken from |
type |
A character vector passed to the |
dependencies |
A character vector specifying which dependencies to install (of “Depends”, “Imports”, “Suggests”, etc.). |
... |
Additional arguments to control installation of package, passed
to |
A named character vector of R package versions installed.
Imanuel Costigan
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
tmp <- file.path(tempdir(), "tmplib")
dir.create(tmp)
# install a single package. Multiple package install is also supported.
install_bitbucket("imanuelcostigan/devtest", lib = tmp)
# Install from Bitbucket Server
install_bitbucket_server("projectname/reponame")
# cleanup
unlink(tmp, recursive = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.