template {exams.forge}R 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)

[Package exams.forge version 1.0.10 Index]