Uses remotes::system_requirements() to retrieve Ubuntu/Debian apt
package names required by a set of R packages. Returns a deduplicated
character vector of bare apt package names suitable for passing to
apt-get install. Warns and returns an empty character vector if the
lookup fails.
Arguments
- packages
A character vector of R package names.
- os_version
A character string. The Ubuntu version to query against. Defaults to
"22.04"when this function is called directly.generate_dockerfile()never relies on that default (C14): it always passes an explicitos_version, derived from the resolvedr_versionvia.resolve_os_version()unless its ownos_versionargument overrides that derivation, since a single hardcoded value here only matched the Ubuntu release actually backing some R versions and not others.- verbose
Logical. If
TRUE, prints progress messages.
