template: template

View source: R/template.R

templateR Documentation

template

Description

A text template where R code can be embedded.

Usage

template(tmpl, ...)

Arguments

tmpl

character: template

...

named parameter used in the template

Value

character where the R code is replaced by its evaluation

Examples

tmpl <- "`r a`+`r b`"
template(tmpl, a=1, b=2)

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.