This R package provides R Markdown templates for the GRID3 project. These templates provide branded fonts, colour schemes and icons. The package can be installed from GitHub as follows:
The template includes output formats for PDF, HTML and Word. These are available through RStudio through File -> New -> RMarkdown -> From Template
, where GRID3 Template
and GRID3 Training Template
, or by changing the output format in the the YAML of your R Markdown document using the following:
An example of the outputs is shown below:
The templates include a range of custom blocks which can be used in documents. The options available include tip, question, exercise, important, rmdnote, rmdcaution, rmdimportant, rmdtip, rmdwarning. These are used within code chunks by setting the header as {block2, type = "tip"}
and including markdown text within the chunk. The full set of options are shown below:
For more examples and demonstrations, users should refer to the template