Skip to content
Prev 23990 / 63421 Next

Writing a package in which files must be sourced in a specific order

What 'alphabetical order' is depends on the locale.  In en_NZ g < G, in C
G < g.  So it is a rather slippery concept (and gets worse in non-English 
locales: 'aa' sorts after z in Danish).

You don't tell us quite what you are doing, but R CMD INSTALL is 
working in C when concatenating the files in the R directory to ensure 
consistency across R installations.

My guess is that you need to give a collation order in the DESCRIPTION 
file (see 'Writing R Extensions'), if I am interpolating your 
comments correctly.
On Thu, 22 Feb 2007, hadley wickham wrote:

            
'loaded'?  Do you mean sourced during INSTALL?