R-alpha: Bug (since 0.50): get(name.of.expression) evaluates

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Fri, 10 Oct 1997 12:05:12 +0200


This was not in 0.49 (when expressions where a different kind of objects).

get(..) does an extra eval(..)  when it should not :


###-*- R -*-   (cut and paste into R) ---------------------------

## rm(a) # if there is an 'a' 

 ex <- expression(a)

 ex
#> expression(a)

get("ex") #--- should really just return `expression(a)' ...
>>>>> Error: Object "a" not found

a <- pi
ex
# expression(a)

get("ex") #--- should really just return `expression(a)' ...
# [1] 3.141593

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-