[Rd] Surprising behavior of Negate()

Peter Dalgaard pdalgd at gmail.com
Mon Aug 30 08:50:11 CEST 2010


On 08/30/2010 02:01 AM, Olaf Mersmann wrote:
> This matches 'f' when Negate() is called and not the first time the return
> value is used. If the current behavior is desired, maybe a note in the
> documentation could be added to clarify this peculiarity.

Looks like a classic lazy eval gotcha -- almost never intentional.

Testing your patch now.

-p

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-devel mailing list