study_setup_code() is a new study's programs/study_setup.R, which
programs/ard/ard_setup.R, programs/tfl/report_setup.R and
programs/tfl/fig_setup.R each source first, so every ARD, report and
figure program runs it. It is one file of three marked parts, run in
this order:
Usage
study_setup_code(meta, date = Sys.Date(), standards = company_standards())Details
the company standard:
setup_code(), copied when the study is made (its marker line says when, and which standards); tflplanner does not change it after.the study: its folders (
study_layout():path_adam,path_sdtm...) and what it is (study_id,study_title,study_short_title,study_compound,study_phase,study_descriptionfromstudy.yml). tflplanner writes it again on every save.the study's own code: tflplanner never touches it.
Saving a study rewrites part 2 only, and parts 1 and 3 stay byte for
byte. A part 2 edited by hand (its checksum no longer matches) is
written again too, the edited file first put in programs/.edited/.