Description Usage Arguments Examples
View source: R/fill_template.R
Slots are identified by the usual {{name}}
convention. One use for this
is constructing formulas from input text strings in a manipulate or shiny app
1 | fill_template(template_str, ...)
|
template_str |
a character string with named slots, e.g. |
... |
values for the slots, e.g. |
1 2 | fill_template("{{person}} is {{age}} years old.", person = "Bill", age = 12 )
as.formula(fill_template("{{y}} ~ {{x}} - 1", x = "height", y = "age"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.