Public-Health-Scotland / phstemplates

Standard R templates and project structure for Public Health Scotland (https://public-health-scotland.github.io/phstemplates/)
Other
19 stars 6 forks source link

Introduction might not always be necessary #87

Closed RosalynLP closed 1 week ago

RosalynLP commented 4 months ago

The compile_report function expects there to be an "Introduction" section in the Rmd and doesn't work if there isn't one. However, it might not always be appropriate to have a section explicitly named "Introduction" in the report and we'd still like the function to work.

alan-y commented 2 weeks ago

Hi @RosalynLP, is there another keyword we should be searching for instead of 'Introduction' or is there sometimes no first section heading? We could create an argument for the first section heading.