Re: [Rd] Writing a package in which files must be sourced in a specific order

2007-02-22 Thread hadley wickham
> 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). I only used characters a-z, so I didn't think that would be a problem. However, it turns out I had misn

Re: [Rd] Writing a package in which files must be sourced in a specific order

2007-02-22 Thread Prof Brian Ripley
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 i

Re: [Rd] Writing a package in which files must be sourced in a specific order

2007-02-22 Thread Oleg Sklyar
Put all loadings into functions and call the functions in .onLoad or .FirstLib, whatever you have there. I would simply advise not to put any code outside of functions or class methods. In this way the order of loading will not matter, it will not depend on system or alphabet and you will als

[Rd] Writing a package in which files must be sourced in a specific order

2007-02-22 Thread hadley wickham
Dear all, I have been using the proto package to create objects with mutable state for my ggplot package. This has been very successful so far, but I have run into a problem when building/installing the package, because the source files need to be loaded in a specific order so that dependencies a