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

A character where the R code is replaced by its evaluation.

Examples

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

exams.forge documentation built on Aug. 21, 2025, 5:41 p.m.