resampling-stats / resampling-with

Source repository for third edition of "Resampling: The New Statistics"
https://resampling-stats.github.io
Other
11 stars 9 forks source link

Dramatically cut down CI build time by only installing missing dependencies #116

Closed stefanv closed 1 year ago

stefanv commented 1 year ago

We cache R dependencies, so no need to re-install them every time.

See, e.g., https://stackoverflow.com/questions/4090169/elegant-way-to-check-for-missing-packages-and-install-them for workarounds.

matthew-brett commented 1 year ago

From that link - I wonder whether we should consider packrat or renv. Not sure what the implications are for caching there.

stefanv commented 1 year ago

Packrat seems to be dead, at least judging from the mailing list discussions.

stefanv commented 1 year ago

Seems like caching works.