Learn R Programming

batchr (version 0.0.2)

batch_is_clean: Is Clean

Description

Tests whether directory contains configuration file created by batch_config().

Usage

batch_is_clean(path, recurse = FALSE)

Arguments

path

A string of the path to the directory with the files for processing.

recurse

A flag specifying whether to recurse into path's subdirectories.

Value

A flag specifying whether the directory is clean.

See Also

batch_cleanup()

Examples

Run this code
# NOT RUN {
path <- tempdir()
batch_is_clean(path)
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_is_clean(path)
batch_cleanup(path, force = TRUE, remaining = TRUE)
batch_is_clean(path)
unlink(file.path(path, "file1.csv"))
# }

Run the code above in your browser using DataLab