knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Disclaimer

A description protocol on how new RMarkdown templates can be created is given.

New Template

According to https://usethis.r-lib.org/reference/use_rmarkdown_template.html a new RMarkdown template can be created by

usethis::use_rmarkdown_template(template_name = "Charlotte-NGS Exam RMarkdown Template", 
                                template_dir  = 'crmdexam',
                                template_description = 'Exam used for all courses hosted by the Charlotte-NGS platform')

The above command creates the directory 'inst/rmarkdown/templates/crmdexam' containing a yaml-file and a subdirectory called 'skeleton'. An empty skeleton RMarkdown file and all other contents are copied into the subdirectory 'skeleton'.



charlotte-ngs/rteachtools documentation built on Sept. 21, 2023, 4:20 p.m.