View source: R/packages--check.R
get_pkgs_installation_status | R Documentation |
Get package installation status (e.g., if packages of interest are installed or need to be updated) and package installation code.
get_pkgs_installation_status(
list_name = NULL,
include = "outdated",
show_status = include,
install = include,
cran = install,
github = install,
other_repos = install,
using_code = install,
local_list = getOption("bio.local_list", FALSE),
pkgs = NULL
)
get_pkg_lists_local()
get_last_pkgs_installation_status()
## S3 method for class 'pkgs_installation_status'
print(x, show_status = x$show_status, ...)
get_pkgs_installation_code(x = NULL, ..., to_clipboard = FALSE, upgrade = TRUE)
list_name |
(character) The name of the list with required R packages. E.g., "mini", "Rcmdr", "Rcmdr-biostat", "bio", etc. |
include |
(character) Which packages from the list (indicated in
|
show_status |
(character) Which packages should be included in the
package installation status summary.
See options of |
install |
(character) Which packages should be included in the
package installation code.
See options of |
cran |
(character) Condition to filter packages that should be
included in code that installs packages from CRAN.
See options of
|
github |
(character) Condition to filter packages that should be
included in code that installs packages from GitHub.
See options of |
other_repos |
(character) Condition to filter packages that should be
included in code that installs packages from other CRAN-like
repositories.
See options of |
using_code |
(character) Condition to filter packages that should
be included in code that installs packages from other sources.
See options of |
local_list |
(logical) If |
pkgs |
(character) The name (vector of names) of R packages.
Either |
x |
Object of interest. |
... |
Arguments to other methods. |
to_clipboard |
(logical) If |
upgrade |
Upgrade dependencies.
See |
Other R-packages-related functions:
compare_version()
,
get_pkgs_installed()
if (FALSE) {
# NOTE: It is not recommended to use the local lists as they might be out of date.
options(bio.local_list = TRUE)
list_name <- "mini"
# Use package name
(status_out <- get_pkgs_installation_status(pkgs = "bio"))
(status_out <- get_pkgs_installation_status(pkgs = "bio", include = "always"))
# Use list name
(status_out <- get_pkgs_installation_status("mini"))
get_pkgs_installation_code(status_out)
(status_all <- get_pkgs_installation_status("mini", include = "always"))
get_pkgs_installation_code(status_all)
(status_custom <-
get_pkgs_installation_status("mini", include = "always", install = "outdated"))
get_pkgs_installation_code(status_custom)
# Package "remembers" the last created 'pkgs_installation_status' object
get_pkgs_installation_status("snippets")
get_last_pkgs_installation_status()
get_pkgs_installation_code()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.