Re: [Rd] duplicated fails to rise correct errors (PR#13632)

2009-03-30 Thread Wacek Kusnierczyk
the bug seems to have a trivial solution; as far as i can see, it suffices to replace if (!is.logical(incomparables) || incomparables) with if(!identical(incomparables, FALSE)) in all its occurrences in src/library/base/R/duplicated.R attached is a patch created, successfully tested

[Rd] duplicated fails to rise correct errors (PR#13632)

2009-03-30 Thread waku
Full_Name: Wacek Kusnierczyk Version: 2.8.0 and 2.10.0 r48242 OS: Ubuntu 8.04 Linux 32 bit Submission from: (NULL) (129.241.110.161) In the following code: duplicated(data.frame(), incomparables=NA) # Error in if (!is.logical(incomparables) || incomparables) .NotYetUsed("incomparables != F