Tests whether directory contains configuration file created by batch_config()
.
Examples
path <- tempdir()
batch_is_clean(path)
#> [1] TRUE
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_is_clean(path)
#> [1] FALSE
batch_cleanup(path, force = TRUE, remaining = TRUE)
batch_is_clean(path)
#> [1] TRUE
unlink(file.path(path, "file1.csv"))