[Rd] list.files() reorders files in R CMD INSALL
vograno at evafunds.com
Thu Jun 23 22:18:35 CEST 2005
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
a A b B
Put foo.R in the vor package. The foo.R just prints the files in ~/FOO:
Now install the package:
~/FOO% R CMD INSTALL -l ~/R/library/ ~/src/vor/
* Installing *source* package 'vor' ...
make: `vor.so' is up to date.
** preparing package for lazy loading
 "A" "B" "a" "b"
>>> Building/Updating help pages for package 'vor'
Formats: text html latex example
* DONE (vor)
Note that the files are listed as:  "A" "B" "a" "b"
Now start an R session
 "a" "A" "b" "B"
which differs in order from that in R CMD INSTALL.
system x86_64, linux-gnu
More information about the R-devel