I'm always forgetting to update the date in DESCRIPTION. Would it be possible to add a warning to R CMD check if it's old? Hadley -- http://had.co.nz/
>>>>> hadley wickham writes:> I'm always forgetting to update the date in DESCRIPTION. Would it be > possible to add a warning to R CMD check if it's old?I recently thought about this. I see several issues. * How can we determine if it is "old"? Relative to the time when the package was uploaded to a repository? * Some developers might actually want a different date for a variety of reasons ... * What we currently say in R-exts is The optional `Date' field gives the release date of the current version of the package. It is strongly recommended to use the yyyy-mm-dd format conforming to the ISO standard. Many packages do not comply with the latter (but I have some code to sanitize most of these), and "release date" may be a moving target. The best that I could think of is to teach R CMD build to *add* a Date field if there was none. Best -k> Hadley> -- > http://had.co.nz/> ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
On 4 April 2008 at 14:05, hadley wickham wrote: | I'm always forgetting to update the date in DESCRIPTION. Would it be | possible to add a warning to R CMD check if it's old? As I mentioned to Hadley in private mail, a version control system can update a field like $Date$ or $LastChangedDate$ automagically on writes or checkins. I use that as I also tend to forget to update the field manually. For SVN one must set one of the arcane propset fields. Hth, Dirk -- Three out of two people have difficulties with fractions.
hadley wickham wrote:>> Please no. If people want one then they should add it manually. It is >> optional, and some of us have explicitly opted out and would like to >> continue to do so. > > To clarify, do you mean you have decided not to provide a date field > in the DESCRIPTION file? If so, would you mind elaborating why?Sure: The date of what?> > Hadley >-- Robert Gentleman, PhD Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M2-B876 PO Box 19024 Seattle, Washington 98109-1024 206-667-7700 rgentlem at fhcrc.org