A set of packrats for various dplyr versions, connected to MRAN to be able to collect the dependencies in the correct version. The package sources are not under version control, we need MRAN to install a snapshot.
- Change to a directory
- Start R
- If the packrat hasn't been initialized yet, run
packrat::restore()
- If the packrat hasn't been initialized yet, run
- Run the code
Example:
cd archive/0.7.4-earliest
R -q -e 'dplyr::slice(c(-1, 1))'
- Change to the
archive
directory. - Use the
add-version.sh
script.
Example: dplyr 0.7.4 has been released on September 28, 2017. We add dplyr 0.7.3 snapshotted on September 26, and dplyr 0.7.4 on September 30:
./add-version.sh 0.7.3-latest 2017-09-26
./add-version.sh 0.7.4-earliest 2017-09-30