renv R package
renv::init(bare = TRUE)
renv::status()
see which packages need to be installed
Update the lockfile using the packages in the DESCRIPTION file renv::snapshot(type = "explicit")
(default add all installed packages to the lockfile)
References: Related: