tags:

views:

85

answers:

1

I am trying to use a java package from R. Rjava provides a way to call java from R, but wrapping all the methods is impractical. Does anyone know of a script that generates wrappers for a package (say, by processing the relevant javadoc)?

+3  A: 

I could be wrong, but having used rJava fairly extensively, I'm quite sure that nothing like that exists.

While implementing my own packages with rJava, I went through the source code for many of the packages that reverse depend on it (you can see these at the bottom of the CRAN page). None of these had anything that looked like automated code.

Incidentally, for anyone unfamiliar with it, I strongly recommend reading the vignette and looking at the source code for the helloJavaWorld package; it was specifically created to help with this process.

What you're suggesting would be a very welcome improvement. I'm happy to collaborate on creating it if anyone has interest.

Shane