verify() is the full check of a project (rule 8.1). It runs the static lints over
the whole project, compares their findings with a commit, checks the pointers of
dict.yml, renders the documents with Quarto (or knits them, under rmarkdown) with the
_freeze folder backed up and restored whatever happens, reads the stamp each render
writes to see that every check ran and passed, checks that no ledger is stale, and prints a
report with a verdict. When it fails it signals a weft_verify_error, so that
Rscript -e 'weft::verify()' exits 1.
Usage
verify(files = NULL, since = NULL, static = FALSE, path = ".")
# S3 method for class 'weft_verify'
print(x, ...)Arguments
- files
NULL(every document and script of the project), or documents and scripts to verify (relative to the project root, or absolute under it). Only these are rendered, stamped, judged for ledgers and listed (a script is only linted: seelints()); the rules that read across files still read the whole project.- since
NULL(the commitHEAD, when there is one) or one string naming a commit.- static
TRUEto run the static parts only: no render, no ledger.- path
A file or folder inside the project.
- x
A
weft_verify.- ...
Not used.
Value
A weft_verify, invisibly, when the check passed: a list with ok, parts
(part, status, detail), errors, added, strict, names, tier2 (each a
weft_findings), removed, decisions, knit, output (the rendered-output findings: file, format, kind, level, section, text, excerpt; each fail row is a reason, warn rows are listed), unexecuted, unfresh, stale, tolerated,
log, notes and seconds. The report is printed to stderr with message().