R/test.R
Typical users of drake should not need this function. It is exported so it can be used to quarantine the side effects of the examples in the help files.
test_with_dir(desc, ...)
desc | character, description of the test |
---|---|
... | code to test |
nothing
# NOT RUN { test_with_dir( "Write a file to a temporary folder", writeLines("hello", "world.txt") ) file.exists("world.txt") # FALSE # }