Reads the values in the log file created by batch_run()
.
batch_log_read(path)
A tibble with four columns:
A character vector indicating SUCCESS or FAILURE
A hms vector of the file processing time
A character vector of the file name
A character vector of the error message (or NA if no error)
path <- tempdir()
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_log_read(path)
#> # A tibble: 0 × 4
#> # ℹ 4 variables: type <chr>, time <time>, file <chr>, message <chr>
batch_run(path, ask = FALSE)
batch_log_read(path)
#> # A tibble: 1 × 4
#> type time file message
#> <chr> <time> <chr> <chr>
#> 1 SUCCESS 00'00" file1.csv NA
batch_cleanup(path)
unlink(file.path(path, "file1.csv"))