wahani / templates

Tools for Template Programming in R
Other
2 stars 1 forks source link

Deal with a vector of templates #9

Open wahani opened 2 years ago

wahani commented 2 years ago

E.g.

templates::tmpl(paste(c(
    "{{a}}",
    "{{b}}"
), collapse = "\n"), a = 1, b = 2)

and

templates::tmpl(c(
    "{{a}}",
    "{{b}}"
), a = 1, b = 2)

Second example delivers confusing results.