I've tagged this as RMarkdown, but its more of a general question...
If I want to make a reproducible manuscript (written in RMarkdown) within an R project easy to re-render by another researcher (using data and code for a manuscript), what would be the pro's and con's of the following two approaches for package management:
- use renv::snapshop() to include a lock file in the project (uploaded to OSF) and link to the renv() vignettes in a readme file.
- use a DESCRIPTION file and let users know they can install the needed packages with devtools::install_deps() in a readme file.
For context, I expect that most readers would download a .zip file from OSF if they wanted to play with the code and data.
I've had some challenges with renv() in the past and I'm concerned it may create issues for potential users of the code/data who may not know anything about renv() - so I was considering that the DESCRIPTION file approach might create fewer issues. Would including the renv() snapshot create issues for users who don't want to use renv?