String interpolation using bquote-stype .() notation. Pure R, no C/C++ code called.

str %s% envir

Arguments

str

charater string to be substituted into

envir

environemnt to look for values

Value

modified strings

Details

See also https://CRAN.R-project.org/package=R.utils, https://CRAN.R-project.org/package=rprintf, and https://CRAN.R-project.org/package=glue.

See also

Examples

"x is .(x), x+1 is .(x+1)\n.(x) is odd is .(x%%2 == 1)" %s% list(x = 7)
#> [1] "x is 7, x+1 is 8\n7 is odd is TRUE"