template | R Documentation |
A text template where R code can be embedded.
template(tmpl, ...)
tmpl |
character: template |
... |
named parameter used in the template |
A character where the R code is replaced by its evaluation.
tmpl <- "`r a`+`r b`"
template(tmpl, a=1, b=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.