auto_test_r {rhino} | R Documentation |
Watch and automatically run R tests
Description
Watches R files in the app
directory and tests/testthat
directory for changes.
When code files in app
change, all tests are rerun. When test files change,
only the changed test file is rerun.
Usage
auto_test_r(reporter = NULL, filter = NULL, hash = TRUE)
Arguments
reporter |
|
filter |
filter passed to |
hash |
Logical. Whether to use file hashing to detect changes. Default is TRUE. If FALSE, file modification times are used instead. |
Value
None. This function is called for side effects.
Examples
if (interactive()) {
# Watch files and automatically run tests when changes are detected
auto_test_r()
}