If your workflow takes a long time to run, you want to test it quickly, and unit testing is too reductionist to cover everything, the
downsize package can help. Just intersperse your code with calls to the
downsize() function. Then, you can toggle the test and production versions of your workflow with the flip of a
TRUE/FALSE global option. That way, you avoid tedium and human error, and your test is a close approximation to the original task at hand.
Edit: updates in version 0.2.0
The main change is that I deprecated functions
scaling() in favor of
my_mode(). Because I explain
downsize to people in terms of test and production modes, it seemed only natural to have this choice of words built into the package. The minor changes are the addition of a
help_downsize() function to suggest helpful links and updates to the documentation.