study_review() lists, for the whole study or some reports, what is
wrong with the definition (error), what is valid but probably wrong
(check) and what is missing and has to be set by hand (hand): the
rules of tflspec::tfl_review_rules(), those of the report list and the
study folder among them. data = "cached" checks against the facts of
the data kept from the last read and reads no file; "read" reads the
datasets whose file or definition changed since; "none" reviews the
definition alone. review_problems() reviews a definition with no study
(the planner alone: what an import's draft and the tests call).
review_facts() gives the facts the review checks against.
Usage
study_review(
study,
output_id = NULL,
data = c("cached", "read", "none"),
ard = TRUE,
deep = FALSE,
home = tflplanner_home(),
lang = tflplanner_language(),
progress = NULL
)
review_problems(
x,
output_id = NULL,
facts = NULL,
lang = tflplanner_language()
)
review_facts(
study,
refresh = FALSE,
read = TRUE,
home = tflplanner_home(),
progress = NULL
)Arguments
- study
An
rtfstudy(open_study()).- output_id
Only these reports;
NULLreviews them all and the study-wide rows.- data
"cached","read"or"none": see above.- ard
TRUEalso checks each report's table against what the study ARD holds, and lists what went wrong while it was made.- deep
TRUEalso reads the definition back as the report programs will (check_planner()): slow, one read a report.- home
The tflplanner home.
- lang
The language of the messages (the app's by default).
- progress
A function called with each dataset's name before its file is read (
data = "read"), orNULL.- x
A planner (
new_planner(), a study's$planner).- facts
The facts of the data (
review_facts()), orNULL.- refresh
TRUEmakes the facts again whatever is kept.- read
FALSEreads no file: the facts kept, the datasets with none listed inattr(, "not_read").