@josi There is a lovely snippet I recently game across in a Dockerfile from the data.table repo. Base #Rstats only, and parses DESCRIPTION. Easy enough for you to adjust to only Imports as desired: