batch_log_read: Read Log File

Description Usage Arguments Value See Also Examples

View source: R/read.R

Description

Reads the values in the log file created by batch_run().

Usage

1

Arguments

path

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

Value

A tibble with four columns:

type

A character vector indicating SUCCESS or FAILURE

time

A hms vector of the file processing time

file

A character vector of the file name

error

A character vector of the error message (or NA if no error)

See Also

batch_process() and batch_config_read()

Examples

1
2
3
4
5
6
7
8
path <- tempdir()
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_log_read(path)
batch_run(path, ask = FALSE)
batch_log_read(path)
batch_cleanup(path)
unlink(file.path(path, "file1.csv"))

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