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 Sept. 11, 2024, 5:32 p.m.