Queries the Posit Package Manager /sysreqs endpoint for the given
packages and platform, and normalizes the response into a
sysreqr_plan. If the API call fails, the function falls back to the
bundled database and records the failure in the
"fallback_error" attribute of the returned plan.
Usage
ppm_sysreqs(
packages = NULL,
all = FALSE,
platform = NULL,
repo = "cran",
base_url = ppm_default_base_url(),
check_installed = TRUE
)Arguments
- packages
Package names. Required when
all = FALSE.- all
Whether to return system requirements for the whole repository.
- platform
Platform specification accepted by
resolve_platform().- repo
Repository name.
- base_url
Posit Package Manager base URL.
- check_installed
Whether to check installed system packages on the current host when possible.
See also
Other ppm:
check_ppm(),
ppm_platforms(),
ppm_repo(),
use_ppm()
Examples
if (FALSE) { # \dontrun{
ppm_sysreqs(c("xml2", "curl"), platform = "ubuntu-22.04")
} # }
