update_dev_pkg.Rd
Downloads and installs latest development version only when a new commit is available which has also passed all tests. Defaults are set to update data.table
, other packages can be used as well. Their repository has to include git commit information in PACKAGES file.
update_dev_pkg(object="data.table",
repo="https://Rdatatable.gitlab.io/data.table",
field="Revision", type=getOption("pkgType"), lib=NULL, ...)
character scalar, package name.
character scalar, url of package devel repository.
character scalar, metadata field to use in PACKAGES file and
DESCRIPTION file, default "Revision"
.
character scalar, default getOption("pkgType")
, used
to define if package has to be installed from sources, binaries or both.
character scalar, library location where package is meant to be upgraded.
passed to install.packages
.
In case if a devel repository does not provide binaries user will need development tools installed for package compilation, like Rtools on Windows, and eventually set type="source"
.
Package namespace is unloaded before attempting to install newer version.
NULL.
# using if(FALSE) because \dontrun could still be run by --run-dontrun; #5421
if (FALSE) data.table::update_dev_pkg()