Re: [R] Template Engine for R

2015-05-18 Thread Luca Cerone
; Sent: Saturday, May 16, 2015 2:35 AM > To: R-help > Subject: [R] Template Engine for R > > 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

Re: [R] Template Engine for R

2015-05-18 Thread Federman, Douglas
, 2015 2:35 AM To: R-help Subject: [R] Template Engine for R 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"

Re: [R] Template Engine for R

2015-05-16 Thread Luca Cerone
On Sat, May 16, 2015 at 5:17 PM, Henrik Bengtsson wrote: > _any text-based formats_, That's exactly what I am looking for then :) I have to create a set of .txt templates. 90% of the time I just will have to do simple "tags" substitutions, but there are some times where I'll need some control fl

Re: [R] Template Engine for R

2015-05-16 Thread Henrik Bengtsson
Hi Luca, I must admit I've not used template engines like the ones you refer to, but I can guess the idea and I believe RSP (the name of the markup language defined in R.rsp) is powerful enough to achieve something similar. RSP, has two main sets of constructors: (a) RSP pre-processing directives

Re: [R] Template Engine for R

2015-05-16 Thread Luca Cerone
Thanks Henrik! That's seem more like what I am looking for, though I do not have to use a template engine for reporting purposes. I do not need to create html, nor markdown but I'll see if I can use it for what I need :) Cheers, luca On Sat, May 16, 2015 at 9:41 AM, Henrik Bengtsson wrote: > Se

Re: [R] Template Engine for R

2015-05-16 Thread Henrik Bengtsson
See http://cran.r-project.org/package=R.rsp Henrik (author) On Fri, May 15, 2015 at 11:34 PM, Luca Cerone 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 m

Re: [R] Template Engine for R

2015-05-16 Thread Luca Cerone
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 minim

Re: [R] Template Engine for R

2015-05-16 Thread Jeff Newmiller
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

[R] Template Engine for R

2015-05-15 Thread Luca Cerone
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