renv
The package management tool renv can be used to record the package versions used in an R project in a so-called lockfile and restore them exactly at a later point. For R, it plays the role that Conda or pip play for Python: it pins the software dependencies (package/library versions) used, but – unlike a container solution such as Docker – does not isolate the entire operating system. In research contexts, renv is commonly used to document and reproduce the R package environment of a replication package.