From Kurt.Hornik@ci.tuwien.ac.at  Tue Aug  5 14:14:32 1997
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Tue, 5 Aug 1997 15:14:32 +0200
Subject: R-alpha: Environment strangeness
In-Reply-To: <x2204gg2mf.fsf@bush.kubism.ku.dk>
References: <199707300129.NAA21654@stat1.stat.auckland.ac.nz>
 <x2204gg2mf.fsf@bush.kubism.ku.dk>
Message-ID: <199708051314.PAA22117@aragorn.ci.tuwien.ac.at>

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


R-alpha: Environment strangeness
Kurt Hornik