Skip to content

Calling a jar file with rJava

2 messages · Cameron Bracken, Gabor Grothendieck

#
I want to call the jar file from R.  I want to be able to do this without
using system().  Normally a command line call would look like 

java -jar eps2pgf.jar -m directcopy myfile.eps

My question is: Can I call this program using the rJava package or any other
(command line options and all)?  I really know nothing about Java so any
pointers would be appreciated.  

Thanks

-Cameron Bracken
#
Check out the source to helloJavaWorld package or one of the other
packages that uses rJava.  Some of them are:
CADStat Containers JGR RFreak RJDBC RKEA RLadyBug
RWeka gWidgetsrJava helloJavaWorld iplots openNLP rSymPy
rcdk rcdklibs wordnet

On Sun, Jan 25, 2009 at 5:48 AM, cameron.bracken
<cameron.bracken at gmail.com> wrote: