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

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Thu 23 Jun 2005 - 21:13:36 GMT

Duncan Murdoch <murdoch@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@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri Jun 24 07:20:06 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:21 GMT