While these are not intended to be called manually by users, they may be of some use for advanced users.
getPkgVersions(pkgDT, install = TRUE) getAvailable(pkgDT, purge = FALSE, repos = getOption("repos")) installFrom(pkgDT, purge = FALSE, repos = getOption("repos")) doInstalls( pkgDT, install_githubArgs, install.packagesArgs, install = TRUE, repos = getOption("repos"), ... ) doLoading(pkgDT, require = TRUE, ...) archiveVersionsAvailable(package, repos)
pkgDT | A character string with full package names or a data.table
with at least 2 columns |
---|---|
install | Logical or "force". If |
purge | Logical. Should all caches be purged Default is
Internally, there are calls to |
repos | The remote repository (e.g., a CRAN mirror), passed to either
|
install_githubArgs | List of optional named arguments, passed to |
install.packagesArgs | List of optional named arguments, passed to |
... | Passed to all of |
require | Logical. If |
package | A single package name (without version or github specifications) |
In general, these functions return a data.table with various package information, installation status, version, available version etc.
doInstall
is a wrapper around install.packages
,
remotes::install_github
, and remotes::install_version
.
doLoading
is a wrapper around require
.
archiveVersionsAvailable
searches CRAN Archives for available versions.
It has been borrowed from a sub-set of the code in a non-exported function:
remotes:::download_version_url