A System for Working with Templates

Provides tools to work with template code and text in R. It aims to provide a simple substitution mechanism for R-expressions inside these templates. Templates can be written in other languages like 'SQL', can simply be represented by characters in R, or can themselves be R-expressions or functions.


  • templates 0.3.0
  • CRAN release
  • Bugfix when passing lists of arguments (see #2 on GitHub).
  • Change when using several curly braces (see #3 on GitHub). Now the inner most set of '{{' define a 'snippet'.
  • templates 0.2.0
  • CRAN release
  • Bugfix when passing arguments with value NULL to templates

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.3.0 by Sebastian Warnholz, 3 years ago

Browse source code at https://github.com/cran/templates

Authors: Sebastian Warnholz [aut, cre]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports stringr, dat, magrittr

Suggests testthat, knitr, rmarkdown, covr

See at CRAN