[R] Version control (git, mercurial) for R packages

Peter Langfelder peter.langfelder at gmail.com
Thu Feb 9 00:01:31 CET 2012


Hi all, in particular package developers,

I'm exploring using a version control system to keep better track of
changes to the packages I maintain. I'm leaning towards git (although
mercurial also looks good) but am not sure what is the best way to set
up the repository. It seems I can't set the repository directly within
the R package main directory, since it will be incompatible with the
standard package structure. I can set the repository in the directory
that contains my R packages, but then I have a single repository for
all of my packages, which is not ideal.

Of course, I could add one extra layer of directory structure (for
example, if a package foo sit in directory RPackages/foo I could move
it to directory RPackages/foo/foo and set the repository in
RPackages/foo) but this seems roundabout and inelegant...

I'd be grateful for any suggestions/pointers.

Thanks,

Peter



More information about the R-help mailing list