Re: [Rd] pointers on including SVN revision number in package info?

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Fri, 06 Jan 2012 16:45:42 -0500

On 12-01-06 3:24 PM, Ben Bolker wrote:
>
> I'm trying to keep debugging of a development package relatively sane.
>
> I see that some packages manage to incorporate what appears to be
> Subversion (SVN) revision information in the package description; for
> example,
>
>> library(MASS)
>> sessionInfo()$otherPkgs$MASS$Revision
> [1] "$Rev: 3016 $"
>
> which looks like an auto-generated revision number.
>
> On the other hand, the rgl package (for example) appears to manually
> encode the SVN revision in the package number:
>
>> library(rgl)
>> sessionInfo()$otherPkgs$rgl$Version
> [1] "0.92.829"

Yes, those are done manually.

> I'd love an automatic strategy, if possible, so I can be lazy about
> updating the DESCRIPTION file every time I commit a change to SVN ...
> I searched the R extensions manual (and the r-forge manual), but I'm
> sure I could have missed something ...

I'd like one that produced an R version number directly, but I think Dirk's script is the only way to do it, and I forget how to use such scripts five minutes after I write them.

>
> Or can people suggest other useful strategies for keeping track of
> which development (micro-)version a random user might be working with?

R-forge sometimes gets out of sync in what it displays as the revision, the Version, and what it actually offers as the "Package source" (let alone binaries), so I find putting the revision into the version number very helpful. But I often forget to do it...

Duncan Murdoch

>
> thanks,
> Ben Bolker
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 06 Jan 2012 - 21:48:07 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 07 Jan 2012 - 13:20:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive