Skip to content
/ grid3rmd Public

✏️📄 R Markdown Templates for use within the GRID project

License

Notifications You must be signed in to change notification settings

GRID3/grid3rmd

Repository files navigation

grid3rmd

Lifecycle: stable License: GPL v3 Commits


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:

remotes::install_github("GRID3/grid3rmd")

Using the templates

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:

output:
  grid3rmd::html_grid3: default
  grid3rmd::pdf_grid3: default
  grid3rmd::word_grid3: default

An example of the outputs is shown below:

Custom Blocks

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