It's questionable whether depending on the latest tag of the rocker/tidyverse container is the best idea. While it will perhaps be more reflective of what users have installed (or can have installed if asked to upgrade to the latest versions), it's prone to start failing at some point simply due to upstream changes. See https://github.com/rocker-org/rocker-versioned.
Or perhaps the solution is to do that only in our versioned containers?