I think that listing all packages with their version with install_version() is not reliable, because of versions of sub-dependencies. I would recommend to redirect users to {renv} and create the Dockerfile using {renv}.
It would be interesting to create the "socle" part of {dockerfiler} that install all deps, even without {renv}
create_dependencies_file()
uses DESCRIPTION as source of information. _Note that DESCRIPTION file can be auto-fill usingfind_remotes()
Criteria of success
install_if_missing
~install_only_if_missing
parameterFrom a DESCRIPTION file such as:
Technicals
[ ] Add a parameter
install_if_missing = FALSE
that will add aif(requireNamespace(quietly = TRUE)) {}
before each install if the parameter is TRUEI think that listing all packages with their version with
install_version()
is not reliable, because of versions of sub-dependencies. I would recommend to redirect users to {renv} and create the Dockerfile using {renv}.It would be interesting to create the "socle" part of {dockerfiler} that install all deps, even without {renv}