Does anyone know of a way to do continuous integration with R programming? I'm aware of tools like the svUnit package to do the unit tests, but has anyone tried to run these with Hudson/Jenkins?
3 Answers
I do not see any particular problem. These things tend to be scripted so could just
- point to the top of your repository
- N minutes after each checkin, loop over source directories
- invoke
R CMD checkon each - your package has to be set to use unit test, for which you can use
That is really not any different from continuous integration with compiled languages. Your question is really about how to do unit testing within R, and that question has been covered before.
at office we have been using Hudson/Jenkins for quite a while. I have contributed integration of svUnit to Jenkins so I would strongly advise you to use svUnit before trying anything else.
have a look at the two libraries I maintain: logging and delftfews or at myself trying to follow zoo and redistribute it on github.
I have not been doing housekeeping recently so the three scripts (in zoo, logging, delftfews) are all slightly different. the one in my zoo version will stop if any test fails. this is practical when you are running R CMD check, but probably less of a good idea when doing continuous integration.