I like variable interpolation in Perl. But in R, if you want to concatenate plain text and variables,
you need to use functions such as paste
. However, if there are so many variables, quotes, braces
in the string you want to construct, it would be painful.
This function allows you to construct strings as in Perl style. Variables are
marked in the text with certain rule. qq
will look up these variables in user's
environment and replace the variable marks with their real values.
For more explaination of this function, please refer to vignette.