Re: [R] using bquote to construct function

2008-10-01 Thread Sundar Dorai-Raj
Thanks, Gabor! This workaround fixes my immediate needs. --sundar Gabor Grothendieck said the following on 10/1/2008 10:42 PM: That may be a bug in R but I think there is another problem on top of that as I don't think bquote descends into function bodies: z <- 2 bquote(function(x) {x^.(z)})

Re: [R] using bquote to construct function

2008-10-01 Thread Gabor Grothendieck
That may be a bug in R but I think there is another problem on top of that as I don't think bquote descends into function bodies: > z <- 2 > bquote(function(x) {x^.(z)}) function(x) {x^.(z)} > bquote(function(x, y) { x^.(z) + y}) function(x, y) { x^.(z) + y} > R.version.string # Vista [1] "R ver