@andrew If you use one of the rig containers [1], it is set up for binary R packages (on amd64) and automatic system package installation (or any arch), so all you need is
FROM ghcr.io/r-lib/rig/ubuntu-22.04-release
RUN R -q -e 'pak::pkg_install("tidyverse")'
Or you can use any container you like, install pak [2], and set up binary packages [3] manually if you like
[1] https://github.com/r-lib/rig#id-container
[2] https://pak.r-lib.org/reference/install.html
[3] https://packagemanager.posit.co/
@andrew Also, if you just want to look them up, this works on any system:
pak::pkg_sysreqs("tidyverse", sysreqs_platform="ubuntu-22.04")
@andrew @gaborcsardi along this line, we've run into this problem enough that we've set up a GH action to check all our R-centric docker images for the sysdeps.
https://github.com/RMI-PACTA/actions/blob/main/.github/workflows/docker-check-R-sysdeps.yml