Rbundler is an R package dependency management utility.
library(rbundler)
help(rbundler)
The bundle
function installs the package and all of it's dependencies into a
bundle library under <project_root>/.Rbundle
and generates an .Renviron
script which sets R_LIBS_USER <project_root>/.Rbundle
.