Scan the log files of multiple R and/or SAS programs The scan searches
\*.Rout files for warnings and errors; \*.log files for warnings, errors,
notes, and other messages using the shell command scanlogs
.
a single directory path. Defaults to the working directory.
optional character
string containing a regular
expression. Only file names which match the regular expression will be
scanned.
a character
vector of file extensions to scan the logs of.
character
vectors containing file names or paths with
extensions .R, .Rmd, .qmd, .Rout, .sas, .log, or .lst. Defaults to the path
of the source editor context.
dir_scanlogs()
returns a named list
of character
vectors.
scanlogs()
returns a named list
of character
vectors of scanned results.
if (FALSE) { # \dontrun{
# Scan all Rout and SAS log files in the working directory
dir_scanlogs()
# Scan all Rout files with "final" in the file name
dir_scanlogs(path = "./stage_directory/asmbdat/", pattern = "final", ext = "Rout")
} # }
if (FALSE) { # \dontrun{
scanlogs()
scanlogs("./stage_directory/asmbdat/mk-something.Rout")
scanlogs("./stage_directory/sas/check-something.log")
scanlogs("./stage_directory/asmbdat/mk-something.Rout", "./stage_directory/sas/check-something.log")
} # }