eval_from_log: Evaluate a File's Tagged Lines

View source: R/rcmdcheck.R

eval_from_logR Documentation

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(...)

Arguments

...

Arguments passed to grep_log.

Value

The object obtained by evaluating the file.

Examples

## Not run: 
# 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:")

## End(Not run)

packager documentation built on Aug. 16, 2023, 5:08 p.m.