Pablo-source / targets-test

Using Targets to automate markdown reports as a pipeline including TBATS ARIMA forecast
MIT License
2 stars 0 forks source link

Render markdown report from pipeline including text with inline figures #15

Closed Pablo-source closed 7 months ago

Pablo-source commented 8 months ago

Once we have created the pipeline, we need to include all three plots created in the pipeline for TypeI, TypeII, and TypeIII attendances into the markdown report.

Also, create one paragraph for each Attendances type section where I populate it with figures and calculations from the dataset created as a result of running the pipeline, describing latest attendances figures for the latest complete year of data in the original ingested dataset.

Pablo-source commented 7 months ago

Start building the pipeline to render the markdown report in a new targets pipeline. This report will use an Excel file saved in the \data folder: "Monthly-AE-Time-Series-March-2024.xls" from this file we will import Attendances Type I, Type II and Type III figures that we will use to populate the Markdown report we will render in the targets pipeline

tar_target(AE_data_input,here("data","Monthly-AE-Time-Series-March-2024.xls"),format = "file")

Pablo-source commented 7 months ago

Included new rendering feature in the existing Targets pipeline. We can render a Markdown document in the Targets pipeline by using {tarchetypes} library. This library provide us with the tar_render() function. So by adding a new target to our pipeline, we can render the report after the pipeline has run and it has populated our Markdown report.