A drake workflow can have several custom functions stored in its R directory. It would make sense to develop unit tests for the custom functions. There is well-established tooling and structures for running testthat unit tests on an R package in RStudio (or from a command line).
- But what are best practices for developing and running testthat unit tests for the custom functions in a drake workflow?
Any pointers to resources or examples would be greatly appreciated. Thanks!