| watch {testthat} | R Documentation |
Watch a directory for changes (additions, deletions & modifications).
Description
This is used to power the auto_test() and
auto_test_package() functions which are used to rerun tests
whenever source code changes.
Usage
watch(path, callback, pattern = NULL, hash = TRUE)
Arguments
path |
character vector of paths to watch. Omit trailing backslash. |
callback |
function called every time a change occurs. It should
have three parameters: added, deleted, modified, and should return
|
pattern |
file pattern passed to |
hash |
hashes are more accurate at detecting changes, but are slower
for large files. When |
Details
Use Ctrl + break (windows), Esc (mac gui) or Ctrl + C (command line) to stop the watcher.
[Package testthat version 3.3.2 Index]