[R] Template Engine for R

Luca Cerone luca.cerone at gmail.com
Sat May 16 09:33:17 CEST 2015


Hi Jeff,
thanks for your reply.

Can you elaborate a bit more what you mean? I know very lillte knitr,
mostly because I use it in Rstudio to render Rmarkdown documents.
However I do not need a template engine for reporting, and I can't see
how I should use it.

Can you provide me with  just a minimal example?

Cheers,
Luca

On Sat, May 16, 2015 at 9:11 AM, Jeff Newmiller
<jdnewmil at dcn.davis.ca.us> wrote:
> Not familiar with your examples, but knitr relies on R for control flow and whisker for template substitution, so it kind of seems unnecessary to have yet another syntax for control flow.
> ---------------------------------------------------------------------------
> Jeff Newmiller                        The     .....       .....  Go Live...
> DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
>                                       Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
> ---------------------------------------------------------------------------
> Sent from my phone. Please excuse my brevity.
>
> On May 15, 2015 11:34:44 PM PDT, Luca Cerone <luca.cerone at gmail.com> wrote:
>>Dear all,
>>I am looking for a template engine for R.
>>
>>I have already come across {{mustache}} and its R implementation
>>whisker,
>>however I am looking for something with a few more features like "if
>>blocks",
>>"for loop", "block inheritance" and so on (for those of you who
>>are familiar with Python I am looking for something like Jinja2 or
>>Mako).
>>
>>I searched in google, but the only option for R seems whisker.
>>
>>Can any of you recommend me some alternatives?
>>
>>Thanks a lot in advance for the help!
>>
>>Cheers,
>>Luca
>>
>>______________________________________________
>>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>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.
>



More information about the R-help mailing list