Skip to content
Prev 17917 / 63424 Next

svn version number

On 10/7/05, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
Thanks.  That seems to work.  I created a file called VERSION
in the inst subdirectory with the single line:

$Id$

and added Id to that file's svn properties by right-clicking on
VERSION file in Windows Explorer, choosing Properties, click
on Subversion tab and enter the Id property. I then did a commit.

I was originally thinking of putting the version information in the
DESCRIPTION file since I think that that is where one would
normally look but am not too sure if there is a logical place for it
there so for the moment at least its in my VERSION file and one
can access it from R via:

    file.show(system.file("VERSION", package = "mypkg"))

Question: Any other ideas of a good place to put this information?
The key requirement I have is that it should be accessible from
within R so that one can check that one is using the svn version
that one thinks one is using.