EarthSystemDiagnostics / TrenchR

An R package to analyse and plot trench-like proxy records
Other
0 stars 0 forks source link

Ensure backward reproducibility #5

Closed thomas-muench closed 3 years ago

thomas-muench commented 3 years ago

This PR introduces unit tests that ensure that the plotting and analyses components of TrenchR which are related to the paper Münch et al. (2017), The Cryosphere, doi:10.5194/tc-11-2175-2017 do not change under future package updates.

For this, the current plotting data needed for the paper figures are stored as test targets, and the respective creating code is executed and its results compared against those targets. This ensures that any future updates to the code base do not unintentionally impair the reproducibility of the paper figures. But note, however, that these tests are only effective as long as the test target data is not changed! (Unless there is a really justified reason to do so, e.g. modified data structure).

This closes #1.