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)})
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
Hi, R-help,
(sessionInfo at the end)
I'm trying to construct a function using bquote and running into a
strange error message. As an example, what I would like to do is this:
z <- 2
eval(bquote(function(x, y) { x^.(z) + y }))(2, 3)
However, I get the following:
Error in eval(expr, envir, en
3 matches
Mail list logo