Produces a Dockerfile RUN snippet that installs the system packages a
plan needs. On apt platforms the output uses the standard
apt-get update && apt-get install -y --no-install-recommends ... && rm -rf /var/lib/apt/lists/* pattern.
Arguments
- x
A
sysreqr_planor package vector.- platform
Platform specification accepted by
resolve_platform().- missing_only
Whether to include only packages not known to be installed.
- ...
Passed to
check_packages()whenxis not a plan.
See also
Other commands:
admin_request(),
github_actions(),
install_command()
Examples
plan <- check_packages("xml2", platform = "ubuntu-22.04")
cat(dockerfile(plan))
#> RUN apt-get update && apt-get install -y --no-install-recommends \
#> libxml2-dev \
#> && rm -rf /var/lib/apt/lists/*
