Learn R Programming

packager (version 1.15.2)

eval_from_log: Evaluate a File's Tagged Lines

Description

Just a wrapper for evaluating the tagged code obtained via grep_log. rcmdcheck::rcmdcheck are cated so we can evaluate them from reading logs (on gitlab, for example)

Usage

eval_from_log(...)

Value

The object obtained by evaluating the file.

Arguments

...

Arguments passed to grep_log.

Examples

Run this code
if (FALSE) {
# We need "." to be a package directory, and it takes quite some time.
sink_file <- tempfile()
sink(sink_file)
rcmdcheck_and_log(".")
sink()
rcmdcheck <- eval_from_log(sink_file, pattern = "=== packager rcmdcheck:")
}

Run the code above in your browser using DataLab