Version 0.1 of
infuser was just released on CRAN.
infuser is a very basic templating engine. It allows you to replace parameters in character strings or text files with a given specified value.
I would often include some SQL code in my R scripts so that I could make parameters in the SQL code variable. But I was always a bit hesitant on the cleanliness of this. It irked me so much that I finally wrote this very simple package. The
infuse function allows me to read in a text file (or a character string for that matter) and
infuse it with the requested values.