powered by
A text template where R code can be embedded.
template(tmpl, ...)
A character where the R code is replaced by its evaluation.
character: template
named parameter used in the template
tmpl <- "`r a`+`r b`" template(tmpl, a=1, b=2)
Run the code above in your browser using DataLab