Skip to content

pmin behavior change in 2.0.0

3 messages · Brian Bielinski, Brian Ripley, Thomas Lumley

#
Hi,

In 2.0.0 the behavior of pmin has changed.
It stops now with an error if all the elements
at a particular point are NA.

These examples were run on windows xp, but the behavior
for 2.0.0 is the same on linux.

R 1.9.1
[1]  1 NA  2
[1]  1 NA  2
[1]  1 NA  2
R 2.0.0
Error: NAs are not allowed in subscripted assignments
[1]  1 NA  2
Error: NAs are not allowed in subscripted assignments
Is this intentional?

Regards,

Brian
#
This is fixed in 2.0.1 beta that is currently available for testing.  It
was a bug in pmin that went undetected until things were tightened up.
[More precisely, pmin used an undefined construction, NA subscripts on the 
LHS of an assignment, that was not implemented consistently.]

Interestingly it came up on Monday, but in none of the testing of 2.0.0
nor for the first 4 weeks it was out.
On Fri, 5 Nov 2004, Brian Bielinski wrote:

            

  
    
#
On Fri, 5 Nov 2004, Brian Bielinski wrote:

            
Yes. This has already been fixed in r-patched.

 	-thomas