Safely interpolate stringsSource:
glue_data_safe() differ from
in that the safe versions only look up symbols from an environment using
get(). They do not execute any R code. This makes them suitable for use
with untrusted input, such as inputs in a Shiny application, where using the
normal functions would allow an attacker to execute arbitrary code.
Unnamed arguments are taken to be expression string(s) to format. Multiple inputs are concatenated together before formatting. Named arguments are taken to be temporary variables available for substitution.
Environment to evaluate each expression in. Expressions are evaluated from left to right. If
.xis an environment, the expressions are evaluated in that environment and
.enviris ignored. If
NULLis passed, it is equivalent to
An environment, list, or data frame used to lookup values.