From edd at debian.org  Sat Apr  5 05:24:24 2008
From: edd at debian.org (Dirk Eddelbuettel)
Date: Fri, 4 Apr 2008 22:24:24 -0500
Subject: [Rd] R CMD check should check date in description
In-Reply-To: <b0808fdc0804041415v577d4844xdeac5d54e05cf45@mail.gmail.com>
References: <f8e6ff050804041205i18227c9dq41dbe5c4241b5605@mail.gmail.com>
	<18422.37414.77562.517176@ron.nulle.part>
	<b0808fdc0804041415v577d4844xdeac5d54e05cf45@mail.gmail.com>
Message-ID: <18422.61672.522552.888937@ron.nulle.part>


On 4 April 2008 at 23:15, Antonio, Fabio Di Narzo wrote:
| 2008/4/4, Dirk Eddelbuettel <edd at debian.org>:
| >
| >  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.
| 
| That's not completely true. As far as I remember (git misses keywords)
| svn keywords are always referred only to the file they appear in. So
| this way the description file would contain the last date the
| description file itself has been modified, not the last date 'any of
| the package file s has been modified'.

I think you are correct. But as one has to augment the version number in
DESCRIPTION anyway, the subsequent check-in will set the date for free.  

It's a kludge, but one that has been working independently of R CMD ... for
years.

Hth, Dirk

--
Three out of two people have difficulties with fractions.



[Rd] R CMD check should check date in description
Dirk Eddelbuettel