CMOR Lunch’n’Learn
11 August 2023
Ross Wilson
_plan.R
includes (in code) all of the steps in the analysis workflow_plan.R
includes (in code) all of the steps in the analysis workflow_plan.R
includes (in code) all of the steps in the analysis workflow_plan.R
includes (in code) all of the steps in the analysis workflowtargets
tracks dependencies between analysis stages and re-runs steps as needed_plan.R
includes (in code) all of the steps in the analysis workflowtargets
tracks dependencies between analysis stages and re-runs steps as neededcmor.tools
brings all of this together under a common structuretargets
pipeline tool for Rtargets
package in an earlier LnL sessiontargets
analyses the pipeline, runs the code, and stores the results in /_targets/
_plan.R
_plan.R
list
object) of targets (specified with tar_target()
)get_data()
, fit_model()
, and plot_model()
targets
works out the dependencies automaticallytargets
pipelinetarchetypes
package provides tar_quarto()
, which allows Quarto documents to be used within a targets
pipelinetar_quarto(report, path = "report.qmd")
defines a step that renders the source document "report.qmd"
to a target named report
tar_load()
in an R code chunk to load dependency targets
targets
will scan the source for these calls to know what the target dependencies arecmor.tools
cmor.tools
package (github.com/uo-cmor/cmor.tools) provides various tools to bring these ideas together and provide a common structure for managing data analysis projectscmor.tools
:
targets
pipeline to specify all of the steps in the workflowcmor.tools
cmor.tools
from GitHub: