View source: R/replaceVariables.R
| replaceVariables | R Documentation |
rmake variables in a character vectorThis function searches for all rmake variables in given vector x and replaces them
with their values that are defined in the vars argument. The rmake variable is a identified
by the $[VARIABLE_NAME] string.
replaceVariables(x, vars)
x |
A character vector where to replace the |
vars |
A named character vector with variable definitions (names are variable names, values are variable values) |
A character vector with rmake variables replaced with their values
Michal Burda
expandTemplate()
vars <- c(SIZE='small', METHOD='abc')
replaceVariables('result-$[SIZE]-$[METHOD].csv', vars) # returns 'result-small-abc.csv'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.