Well, I would use .Rprofile for this. There is something to say that you are not dependent on the tool chain around you: knitr works from RStudio, as well as without it, dito for Rcpp / RInside, etc.
You can connect to commit commit for svn, either explicitly using hooks at the end, or just adding shell scripts in the end. I suppose you can do the same with git, but I just know a lot less about that. Therefore, in order to distract this, I will write myself a commitThis or pushThis or ... function, which will increase the number, test run, code writing and what you have.
Dirk eddelbuettel
source share