text_expand: Evaluate expressions in curly brackets inside strings
Description
text_expand is simple string interpolation function. It searches in its
arguments expressions in curly brackets {expr}, evaluate them and substitute with
the result of evaluation. See examples.
Usage
text_expand(..., delim = c("\\{", "\\}"))
Value
Vector of characters
Arguments
...
character vectors
delim
character vector of length 2 - pair of opening and closing
delimiters for the templating tags. By default it is curly brackets. Note
that delim will be used in the perl-style regular expression so you
need to escape special characters, e. g. use "\\{" instead of
"{".