rstudio installs packages to a folder in /home/rstudio/R which is impractical since the changes are lost after a container restart. If I try to bind mount that folder, rstudio decides to install packages somewhere else (/usr/local/lib/....).
What is the preferred way of persisting user packages?