batch_is_clean: Is Clean

Description Usage Arguments Value See Also Examples

View source: R/is-clean.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
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"))

batchr documentation built on Oct. 3, 2021, 9:06 a.m.