Hi. I had the same problem, and here how I solved.
I wrote this recursive function https://github.com/stefanoberri/Rmisc/blob/master/retrievePkgNamesAndVersions.R from an R installation where ggplot2 is installed you run getPkgsTree("ggplot2") this will return the list of package names and versions required by ggplo2 in the right order of dependencies (The first package does not have any further dependencies, the last one is ggplo2) from there on, you can easily create a easybuild config file So, when you need new packages you install them using install.packages and then use that function to figure out its dependencies and version and then you can "freeze them" in a easybuild config file. I hope this is helpful Stefano

