Motivated by what we've added in renv, it feels like some subset could be useful more broadly in testthat. (The primary motivation: it can be frustrating when you try to write a snapshot test only to find it fails on Windows on CI because of something OS-specific.)
Some options:
- R version,
- Package version(s),
- Working directory (including aliased paths?)
- R temporary directory (including aliased paths?)
- Repository paths,
- Library paths,
- Elapsed times?