Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Continuous Integration (Hudson/Jenkins) and R Programming

Tags:

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?

like image 330
Travis Nelson Avatar asked Aug 09 '11 20:08

Travis Nelson


People also ask

What is difference between Jenkins and Hudson?

There is no such difference between Hudson and Jenkins. Jenkins is actually the renamed version of Hudson. After disagreements between Oracle and Hudson creators, the latter decided that Hudson was to be forked and Jenkins CI.

Is Hudson used for continuous integration?

Hudson is a discontinued continuous integration (CI) tool written in Java, which runs in a servlet container such as Apache Tomcat or the GlassFish application server.

How does Jenkins perform continuous integration?

How does Jenkins integrate with Git? Go to Jenkins dashboard, click on “Manage Jenkins.” Now follow these steps- Manage Plugins -> 'Available' tab -> Enter Git in search bar and filter -> Install required plugin. After the installation, all you need to do is click on “Configure System” and go to the 'GitHub' section.

What is Hudson used for?

Hudson is a Java-based open source Continuous Integration tool. Like any other Continuous Integration tool, Hudson provides the teams to trigger builds and tests with any change in the Source Control Management System. Hudson supports a large range of tools and plugins.


1 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 check on each
  • your package has to be set to use unit test, for which you can use
    • RUnit which is the initial unit testing for R ; it is widely used
    • testthat which is a newer package by Hadley, and used by many of his packages
    • svUnit by Philippe which AFAIK never caught on quite as much as the other two.

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.

like image 107
Dirk Eddelbuettel Avatar answered Oct 06 '22 11:10

Dirk Eddelbuettel