Use both the renv package and the Imports field in DESCRIPTION file for reproducible projects?

I am creating a project (not a package) using usethis::create_project. I would like to make this a project for easy collaboration and reproducibility.

I understand that the renv package aids in dependency management, and collaborators/reproducers can use renv::restore to get all dependencies. I also understand that I can use the Imports field in the DESCRIPTION file to state dependencies, and collaborators/reproducers can use devtools::load_all to load the project dependencies.

Is there an advice on which of the two options to use? Or use both? And if so, do they interact?

This topic was automatically closed after 45 days. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.