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

2005-06-23 Thread Peter Dalgaard
Duncan Murdoch <[EMAIL PROTECTED]> 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

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

2005-06-23 Thread Duncan Murdoch
On 6/23/2005 4:38 PM, Duncan Murdoch wrote: > On 6/23/2005 4:18 PM, Vadim Ogranovich wrote: >> Hi, >> >> The list.files() function seems to order its result vector differently >> when is run during R CMD INSTALL. Here is an example: >> >> ~% mkdir ~/FOO >> ~% cd ~/FOO/ >> ~/FOO% touch a A b B >

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

2005-06-23 Thread Duncan Murdoch
On 6/23/2005 4:18 PM, Vadim Ogranovich wrote: > Hi, > > The list.files() function seems to order its result vector differently > when is run during R CMD INSTALL. Here is an example: > > ~% mkdir ~/FOO > ~% cd ~/FOO/ > ~/FOO% touch a A b B > ~/FOO% ls > a A b B > > > Put foo.R in the vor

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

2005-06-23 Thread Vadim Ogranovich
Hi, The list.files() function seems to order its result vector differently when is run during R CMD INSTALL. Here is an example: ~% mkdir ~/FOO ~% cd ~/FOO/ ~/FOO% touch a A b B ~/FOO% ls a A b B Put foo.R in the vor package. The foo.R just prints the files in ~/FOO: print(list.files("~/F