R-alpha: Environment strangeness

Peter Dalgaard BSA p.dalgaard@kubism.ku.dk
30 Jul 1997 14:12:40 +0200

Robert Gentleman <rgentlem@stat.auckland.ac.nz> writes:

> Ross and I have been back and forth on this one a few times already;
> it's probably a faq (Kurt);

This belongs on the *manual page*. I suggest something along these

NOTE( Calling LANG(eval(x+y,e)) does not do what one might think. To
get values of LANG(x) and LANG(y) looked up in the environment
LANG(e), use LANG(eval(expression(x+y),e)). The logic is that
LANG(expr) is usually a simple variable ITALIC(containing) an
expression to evaluate or a LANG(substitute(...)) call
ITALIC(resulting) in an expression. Hence, the value of LANG(expr) is
passed to the evaluator.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
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