Description Usage Arguments Details Value Examples
Substitution
1 | substitution(s, params, pattern = pp)
|
s |
A string in which to make replacements |
params |
A named list of substitution parameters |
pattern |
The pattern that encodes parameters. |
Given a string with parameters encoded inside braces, substitution
replaces the parameters with values given in the
'params' argument. This is mostly useful for parameterizing SQL code.
A string with replacements made.
1 | substitution("SELECT {thing} FROM {place}", list(thing = "TOOLS", place = "TOOLSHED"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.