I am not familiar with velocity or freemarker but
the gsubfn package can do string interpolation
somewhat similar to perl. The gsubfn and strapply
functions in that package can handle arbitrary regular
expressions in a similar way. See:
http://code.google.com/p/gsubfn/
On 12/7/06, Ido M. Tamir <tamir at imp.univie.ac.at>
wrote:> Hi,
>
> does anybody know of a templating library for R,
> like velocity or freemarker?
>
> It doesn't have to be very fancy just a bit
> better than sub in replacing tags in a text (not
> necessarily html) file.
>
> thank you very much for your answer.
>
> Ido
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>