dfe-analytical-services / dfeR

Common R tasks in the Department for Education (DfE)
https://dfe-analytical-services.github.io/dfeR/
GNU General Public License v3.0
9 stars 2 forks source link

use_style function #29

Closed adamrobinson361 closed 6 years ago

adamrobinson361 commented 6 years ago

Background

We've got 2 different templates at the moment for publishing reports based off of rmarkdowns. These are currently used by sharing the files and citing in rmarkdown yaml.

Instead we want to look to get these in the package so that they can easily be used by anybody. This will allow us to standardise outputs a lot more easily.

Steps to take

  1. Source files from slack
  2. Flesh them out (particularly the tad one to include all the headers). Standardise across the 2 where possible.
  3. Create use_style() function that takes parameter type to apply the them to a markdown

Note: the shiny themes package does a very similar thing with css and shiny. By looking at the r code for this you should be able to easily translate to word and rmarkdown