7;William Dunlap'; r-devel@r-project.org
Subject: Re: [Rd] bug in approx crashes R
>>>>> Vadim Ogranovich
>>>>> on Mon, 27 Jul 2009 12:47:47 -0500 writes:
> Thank you Bill.
Indeed, thank you, Bill Dunlap!
> The original motivation for my
r error message when yleft,
> yright, and f are set to non-scalars is better than
> silently returning NA.
yes, I agree too.
---
Martin Maechler, ETH Zurich
> Thanks,
> Vadim
> -Original Message-----
> From: William Dunlap [mailto:wdun...@tibco.com
.
Still don't know how to do that.
I agree that having a clear error message when yleft, yright, and f are set to
non-scalars is better than silently returning NA.
Thanks,
Vadim
-Original Message-
From: William Dunlap [mailto:wdun...@tibco.com]
Sent: Monday, July 27, 2009 12:14 PM
The C code called by approx (via .C, not .Call), following the help
file,
assumes that yleft and yright are scalars but NULL is not scalar.
The following change would let your example work (returning NA)
--- R/approx.R (revision 48911)
+++ R/approx.R (working copy)
@@ -61,8 +61,8 @@
}