From p.dalgaard at biostat.ku.dk  Thu Jun 23 23:13:36 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: 23 Jun 2005 23:13:36 +0200
Subject: [Rd] list.files() reorders files  in R CMD INSALL
In-Reply-To: <42BB1FB6.9090808@stats.uwo.ca>
References: <C698D707214E6F4AB39AB7096C3DE5A5AB50FD@phost015.EVAFUNDS.intermedia.net>
	<42BB1DB7.8050004@stats.uwo.ca> <42BB1FB6.9090808@stats.uwo.ca>
Message-ID: <x2aclgn5dr.fsf@turmalin.kubism.ku.dk>

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



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