[Rd] In-string variable/symbol substitution: What formats/syntax is out there?

2013-12-17 Thread Henrik Bengtsson
Hi, I'm try to collect a list of methods/packages available in R for doing in-string variable/symbol substitution, e.g. someFcn(pi=${pi}), anotherFcn(pi=@pi@) and so on becomes pi=3.141593. I am aware of the following: ** gsubfn() in the 'gsubfn' package, e.g. gsubfn( , , pi = $pi, 2pi =

Re: [Rd] In-string variable/symbol substitution: What formats/syntax is out there?

2013-12-17 Thread Duncan Murdoch
On 13-12-17 4:44 PM, Henrik Bengtsson wrote: Hi, I'm try to collect a list of methods/packages available in R for doing in-string variable/symbol substitution, e.g. someFcn(pi=${pi}), anotherFcn(pi=@pi@) and so on becomes pi=3.141593. I am aware of the following: ** gsubfn() in the 'gsubfn'

Re: [Rd] In-string variable/symbol substitution: What formats/syntax is out there?

2013-12-17 Thread Peter Meilstrup
There's also knit_expand() in knitr, which uses the form pi = {{pi}} with general expressions. Peter On Tue, Dec 17, 2013 at 1:44 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote: Hi, I'm try to collect a list of methods/packages available in R for doing in-string variable/symbol

Re: [Rd] In-string variable/symbol substitution: What formats/syntax is out there?

2013-12-17 Thread Gabor Grothendieck
On Tue, Dec 17, 2013 at 4:44 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote: Hi, I'm try to collect a list of methods/packages available in R for doing in-string variable/symbol substitution, e.g. someFcn(pi=${pi}), anotherFcn(pi=@pi@) and so on becomes pi=3.141593. I am aware of the