R-alpha: Environment strangeness

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Tue, 5 Aug 1997 15:14:32 +0200


>>>>> Peter Dalgaard BSA writes:

> 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.
> )

Perhaps as a compromise, we could put something like the above into the
man page, AND I'll add something in the FAQ?

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