On Tuesday 20 July 2004 06:19, John Hendrickx wrote: > Couldn't eval be modified to automatically parse arguments if they're > not expressions? Something like: > eval2<-function(arg) { > if (!is.expression(arg)) arg<-parse(text=arg) > eval(arg) > } > Would a construction like eval2 have a downside or cause problems > down the line?
If eval itself is modified, that would cause backward incompatibilities. e.g., > k = "mystring" > eval(k) [1] "mystring" > eval2(k) Error in eval(expr, envir, enclos) : Object "mystring" not found Deepayan ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html