On 11/04/2011 1:10 PM, William Dunlap wrote:
If x has an S3 class then sort.int(x) returns a value
without an S3 class but which has the is.object flag set,
which, I think, causes identical() give a false/misleading
report:
Fixed in R-devel as of r55409.
Duncan Murdoch
> x<- structure(1
On 11/04/2011 1:10 PM, William Dunlap wrote:
If x has an S3 class then sort.int(x) returns a value
without an S3 class but which has the is.object flag set,
which, I think, causes identical() give a false/misleading
report:
I think your analysis is correct. It's too late for 2.13.0, but I'll
> -Original Message-
> From: r-devel-boun...@r-project.org
> [mailto:r-devel-boun...@r-project.org] On Behalf Of William Dunlap
> Sent: Monday, April 11, 2011 10:10 AM
> To: R-devel@r-project.org
> Subject: [Rd] sort.int(S3object) strips class but not the
> is.obje
If x has an S3 class then sort.int(x) returns a value
without an S3 class but which has the is.object flag set,
which, I think, causes identical() give a false/misleading
report:
> x <- structure(1:3, class="unrecognizedClass")
> y <- sort.int(x)
> t <- 1:3
> identical(y, t) # expect TRUE