dynamicTemplate | R Documentation |
Replace placeholder variables in a HTML document string.
dynamicTemplate(x, replacements = c())
x |
HTML string with placeholder variables that need to be replaced. |
replacements |
A named vector or named list. Names should match a template variable acting as a placeholder in a HTML document string and values should be the text to replace the placeholders with. |
A string of HTML with placeholder values replaced.
dynamicTemplate( x = html(body(templateVar("body_var"))), replacements = c("%%rvar-body_var%%" = div(p("body replacement"))) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.