[Rd] list.files() reorders files in R CMD INSALL

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Jun 23 23:13:36 CEST 2005


Duncan Murdoch <murdoch at stats.uwo.ca> writes:

> >> [1] "a" "A" "b" "B"
> >> 
> >> which differs in order from that in R CMD INSTALL.
> > 
> > Looks like the sorting is being done in the C locale in the first case, 
> > and in a different one in the second.  See ?locales for how to set the 
> > locale to what you want.
> 
> ... when in R, and see the R Extensions manual for setting it during the 
> INSTALL.

However, notice that the C locale is generally enforced for a reason:
Sometimes the order of files matter, e.g. the file zzz.R is designed
to come last, but in en_GB it actually comes before Zeke.R and in
Estonian z comes between s and t...

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-devel mailing list