last_knit() returns what weft recorded in the most recent top-level knit
in this R session, or NULL before any knit. The records are kept after
the knit has ended or failed.
Value
NULL, or a list with these elements:
constructs: a data frame with a row for each construct the scanner found (its file, line, kind, expression, context, chunk, option, arm chosen, whether it was evaluated, andunit_picked: for a construct with aunitkey the unit it printed in, as written in its ladder (rule 4.4.23), elseNA), orNULLwhen there was none;failures: a data frame of the failures, one row for each, with the columnskind,file,line,chunk,expr,detail,hint,optionandchunk_line;warnings: the checks that were warned about byclaim(level = "warn")and the numbers that "printed as zero" (kind "printed as zero"), in the same columns asfailures(zero rows when there are none);conditions: a data frame of the warnings and messages that chunks and inline code raised (source,class,textandnormalised);ledger: the entries of the ledger the knit recorded, as a data frame of classweft_ledger(the columns of the ledger file, one row for each construct evaluated), for every top-level knit, set up or not;condition_log: the lines of the condition log, as a data frame of classweft_condition_log(from,source,class,normalisedandtext);output: the output name the ledger files are named by;written: the paths of the ledger and the condition log written, relative to the project root, eachNAwhen nothing was written (the project is not set up, the knit is a rehearsal, or it stopped on its failures);config: the configuration the knit used;sentence_starts: a data frame of the values that start a sentence (file,line,exprandtext);dictanddict_local: the project dictionary and the chapter's own, asread_dict()returns them, orNULLwhen there was none;reads: what the chapter read, as the ledger's header records it (rule 7.2.2):dictandfiles(named character vectors of hashes, the key or path as the name) andtargets(a named list, one named character vector for eachtargetsstore). A hash isNAwhen it could not be taken.NULLfor a rehearsal and for a project that is not set up.