From sfalcon at fhcrc.org  Fri Oct  7 18:54:09 2005
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Fri, 07 Oct 2005 09:54:09 -0700
Subject: [Rd] svn version number
In-Reply-To: <971536df0510070923t45f310e1ic63fa4734ac954@mail.gmail.com>
	(Gabor Grothendieck's message of "Fri, 7 Oct 2005 12:23:47 -0400")
References: <971536df0510070612m1e45d1e8ya4f51afdc1e698b7@mail.gmail.com>
	<43469C13.2020206@stats.uwo.ca>
	<971536df0510070923t45f310e1ic63fa4734ac954@mail.gmail.com>
Message-ID: <m2br218dzi.fsf@macaroni.local>

On  7 Oct 2005, ggrothendieck at gmail.com wrote:

> On 10/7/05, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
>> Gabor Grothendieck wrote:
>>> Is there some way of automatically including the svn version
>>> number of a package in the DESCRIPTION file or otherwise so that
>>> one can check from within R which svn version number one has?
>>
>> You could do this by writing it into your Makefile, but there's no
>> other existing support for it.  I'd recommend combining the URL
>> reported by "svn info" with the result of svnversion to get the
>> most informative version.  Watch out for cases of people who are
>> trying to make your package from a tarfile, rather than an svn
>> checkout.  We have ended up with some fairly tricky Makefile
>> programming to get what we want into the R banner.
>
> There is no makefile at all currently as my package is all R.  Also,
> I currently use TortoiseSVN.

This is really an svn question.  Perhaps asking/searching on an svn
list would be helpful.

Personally, I don't think R's package building tools should do
anything svn specific.  There is no reason to expect/enforce svn as
*the* SCM that people use to develop R packages.

+ seth



[Rd] svn version number
Seth Falcon