From p.dalgaard@kubism.ku.dk  Wed Jul 30 13:12:40 1997
From: p.dalgaard@kubism.ku.dk (Peter Dalgaard BSA)
Date: 30 Jul 1997 14:12:40 +0200
Subject: R-alpha: Environment strangeness
In-Reply-To: Robert Gentleman's message of Wed, 30 Jul 1997 13:29:54 +1200 (NZST)
References: <199707300129.NAA21654@stat1.stat.auckland.ac.nz>
Message-ID: <x2204gg2mf.fsf@bush.kubism.ku.dk>

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
lines:

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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: Environment strangeness
Peter Dalgaard BSA