Ok, I think that's a reasonable request. You can do it currently by manually not including the collate roclet when calling roxygen, but maybe the default should only be to output it when the import tag is used. <br><br>
Could you provide a pointer to r-core on collate? I was under the impression you should always use collate to avoid potential problems on systems with different default sort orders. <br><br>Hadley<br><br>On Wednesday, August 10, 2011, Brian G. Peterson <<a href="mailto:brian@braverock.com">brian@braverock.com</a>> wrote:<br>
> On Wed, 2011-08-10 at 20:49 +0000, Hadley Wickham wrote:<br>>> Why is it super annoying?<br>><br>> When doing development, I may add (or remove) files (functions) to a<br>> nascent package, with or without fully-baked documentation. Typically,<br>
> while these are 'experimental', I won't want to export them to the<br>> NAMESPACE anyway. If/when I want to export them, I add @export tags.<br>><br>> I don't run roxygenize() all the time, since I don't need to regenerate<br>
> my documentation for every little change. @export additions would cause<br>> me to run it to update the NAMESPACE, most other minor changes would<br>> not.<br>><br>> Without a Collate field (which R-core members have publicly said is<br>
> over- and mis-used), the package will build fine, and R CMD check will<br>> generate expected Warnings about missing documentation for any exported<br>> functions.<br>><br>> When a Collate field exists and doesn't contain the file in question, R<br>
> CMD build will suffer a fatal error. For packages hosted on one of the<br>> development repositories, this means that a binary or tarball will not<br>> be available/updated.<br>><br>> The only time a Collate field should be required is when you need a<br>
> particular load order for the sourcing of files while a package is being<br>> built.<br>><br>> I'd rather not have a Collate field at all by default.<br>><br>> I hope, from the comment that the "`Collate` field in `DESCRIPTION` no<br>
> longer needs to exist", that getting rid of it is easy. Ideally, I'd<br>> like to see this be the *default* behavior for roxygenize().<br>><br>> Regards,<br>><br>> - Brian<br>><br>>><br>
>> On Wednesday, August 10, 2011, Brian G. Peterson <<a href="mailto:brian@braverock.com">brian@braverock.com</a>><br>>> wrote:<br>>> > On Wed, 2011-08-10 at 02:56 -0500, Peter Danenberg wrote:<br>
>> >> * `Collate` field in `DESCRIPTION` no longer needs to exist<br>>> >><br>>> > How do we eliminate the Collate field? It's super annoying, and<br>>> most<br>>> > often not additive in any way, unless you need files sourced in a<br>
>> > particular order.<br>>> ><br>>> > Regards,<br>>> ><br>>> > - Brian<br>>> >><br>>> > --<br>>> > Brian G. Peterson<br>>> > <a href="http://braverock.com/brian/">http://braverock.com/brian/</a><br>
>> > Ph: 773-459-4973<br>>> > IM: bgpbraverock<br>><br>><br>><br><br>-- <br>Assistant Professor / Dobelman Family Junior Chair<br>Department of Statistics / Rice University<br><a href="http://had.co.nz/" target="_blank">http://had.co.nz/</a><br>