Revision 0bea3e80a876cceb9e179ef3a64d94103c350c41 authored by Romain Francois on 12 August 2020, 15:15:45 UTC, committed by Romain Francois on 12 August 2020, 15:15:45 UTC
1 parent 3ddaae5
Raw File
README.md
# dplyr archive

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.

## Test code with a particular dplyr version

1. Change to a directory
1. Start R
    - If the packrat hasn't been initialized yet, run `packrat::restore()`
1. Run the code

Example:

```sh
cd archive/0.7.4-earliest
R -q -e 'dplyr::slice(c(-1, 1))'
```

## Add a new packrat

1. Change to the `archive` directory.
1. 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:

```sh
./add-version.sh 0.7.3-latest 2017-09-26
./add-version.sh 0.7.4-earliest 2017-09-30
```
back to top