Skip to content
Brad Cannell edited this page Feb 1, 2023 · 5 revisions

Welcome to the templates wiki!

Instructions

After you make changes to the package:

  • Save.
  • Update documentation.devtools::document()
  • Run build checks. devtools::check()
  • Build package. devtools::build()

See R Notes on packages

RMD Templates

Notes on adding Rmd templates to the package.

R Notes on creating R Markdown templates

QMD Templates

Notes on adding qmd templates to the package.

  • As of this writing, there isn't a way to add a qmd template to RStudio's New Quarto Document dialogue box the way you can with Rmd documents.
  • Following the advice on this blog post, I was able to create a qmd template file.
  • The catch is you also have to write a function to load the template file. For example, to load the "No Output" template file, I have to submit templates::new_quarto_no_output() to the console.
  • I was also able to create an addin for the function using these instructions