Re: [Rd] bug in rank(), order(), is.unsorted() on character vector

2011-12-08 Thread Hervé Pagès
Hi Paul, On 11-12-07 10:29 AM, Roebuck,Paul L wrote: Do this first and try again. R> Sys.setlocale("LC_COLLATE", "C") OK I see it now (in ?Sys.setlocale): Sys.setlocale("LC_COLLATE", "C") # turn off locale-specific sorting, # usually Thanks all for

Re: [Rd] RcppArmadillo compilation error: R CMD SHLIB returns status 1

2011-12-08 Thread Paul Viefers
Having followed the suggestion by Duncan, the shell returned literally nothing. No error message and no *.so file anywhere on my HDD. I also suspect that there is something wrong with my compiler setup, which I have struggled with quite a while. Maybe this is a good opportunity to write a less te

Re: [Rd] bug in rank(), order(), is.unsorted() on character vector

2011-12-08 Thread Gordon Brown
Hi, folks, Underscores are, in fact, ignored in some collation orders, including (if I recall correctly) en_CA.UTF-8. It's caused me a bit of confusion now and then. No idea about "English_United States.1252", but from the fact that Joris' example does not agree with Hervé's, it seems most likel

Re: [Rd] bug in rank(), order(), is.unsorted() on character vector

2011-12-08 Thread Hadley Wickham
> Actually this is the situation I was facing when I did my first post: > I have a function that downloads a list of sequences from the Ensembl > FTP server, sorts them by name, and returns them to the user. I have > a test for that function and the test was working for me when I was > doing > >  t

[Rd] object type changes after being used as an argument in .Internal(paste(...))

2011-12-08 Thread Joris Meys
OK, I realize I'm hacking away in R in a manner that was not intended, but I found this interesting behaviour nonetheless, and I am not sure whether this was intended to be so or not. > x <- list(1:3,1:3,1:3) > r1 <- do.call(paste,x) # the correct way > sapply(x,typeof) [1] "integer" "integer" "in

Re: [Rd] bug in rank(), order(), is.unsorted() on character vector

2011-12-08 Thread Roebuck,Paul L
On 12/8/11 3:57 AM, "Hervé Pagès" wrote: > On 11-12-07 10:29 AM, Roebuck,Paul L wrote: >> Do this first and try again. >> >> R> Sys.setlocale("LC_COLLATE", "C") > > OK I see it now (in ?Sys.setlocale): > >Sys.setlocale("LC_COLLATE", "C") # turn off locale-specific sorting, >

Re: [Rd] bug in rank(), order(), is.unsorted() on character vector

2011-12-08 Thread Hervé Pagès
Hi Barry, Hope you don't mind if I put this back on the list. On 11-12-08 05:50 AM, Barry Rowlingson wrote: 2011/12/8 Hervé Pagès: A naive question: wouldn't everything be simpler if LC_COLLATE=C was the default for everybody? Yet when we Brits suggest everything would be simpler if the w

Re: [Rd] Unable to collate and parse R files with R CMD check

2011-12-08 Thread Sumukh Sathnur
Thanks! That fixed the problem, it turned out one of my source files was incomplete. Sumukh 2011/12/7 Uwe Ligges > > > On 06.12.2011 20:05, Sumukh Sathnur wrote: > >> Hi all, >> >> I'm trying to build a package on Windows 7 (64 bit) and although R cmd >> build worked fine and I got pkg.tar.gz w

[Rd] Reference class finalize() fails with 'attempt to apply non-function'

2011-12-08 Thread Martin Morgan
This bug appears intermittently in R CMD check when reference classes have finalize methods. The problem is that garbage collection can be run after the methods package is no longer available. It affects (periodically) the Bioconductor AnnotationDbi package as well as packages that contain Rcpp