Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Maven for R projects

Tags:

r

maven

I am beginning work on a project that makes heavy use of R. I've used R in the past, but only in a casual mode, whereas I'm now interested in following a more rigid practice of test/source control/continuous integration. I'm hoping to use Maven with this project if possible (having been pleased with how this manages packages with Java), but I can't find any evidence that it is possible to use Maven with R. Is it possible to create an R project with Maven, and if so, where can I find steps to help me get started?

I've found this question and this question, but they don't mention R.

like image 531
Ben Hocking Avatar asked Oct 24 '11 19:10

Ben Hocking


1 Answers

Well you could make use of the Maven Exec Plugin with the resource, filter and jar plugins to fake an R project type.

You can do something like this to set up multiple R goals with the exec plugin so that compile, filter, test, et al have some kind of R call associated.

http://maven.apache.org/plugins/maven-resources-plugin/

like image 86
sal Avatar answered Oct 02 '22 19:10

sal