There may be a better solution to managing R dependencies reliably these days: https://rstudio.github.io/renv/articles/docker.html