auto_test_r | R Documentation |
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.
auto_test_r(reporter = NULL, filter = NULL, hash = TRUE)
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. |
None. This function is called for side effects.
if (interactive()) {
# Watch files and automatically run tests when changes are detected
auto_test_r()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.