I am creating an R package. The package defines several reference classes. There is a dependency between the classes because one is the base class and the others are subclasses. Due to this dependency, the package files must be loaded in a certain order: the base class first, then the subclasses. With just my luck, however, R is loading the subclasses first and complaining that the base class is not defined.
How can I force the package's source files to be executed in a particular order?
My current, kludge "solution" is to put all class definitions into one source file, with the base class defined first. Talk about ugly. There's gotta be a better way.