replace_module_markers | R Documentation |
This function can be used to replace markers in a string to other strings according to a pattern.
replace_module_markers(template_str, marker_pattern, objs)
template_str |
The template string (string with the markers). |
marker_pattern |
The pattern of the markers. It is a regular expression rule. |
objs |
A vector with the strings that will replace the markers. The replacement is made in order, that is, the first markers will be replaced by the first strings specified in this vector. This vector must have a number of strings less or equal the number of markers in the template string. |
The template string with the markers replaced.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.