newnewbie
newnewbie

Reputation: 1003

Invoke R from Java on windows and Linux

I am writing a Java application. I want to invoke R with that application. Now, I have found Rserve, but the proble is as follows: the program, once finished, should work on Linux as well as Windows AND the user does not necessarily have R on his computer, so everything necessary should end up in the Jar.

Is that even possible?

Upvotes: 0

Views: 74

Answers (1)

Hong Ooi
Hong Ooi

Reputation: 57686

You have at least a couple of choices:

  1. Bundle the standard R distribution with your program.

  2. Bundle renjin with your program. This is an implementation of R using the JVM.

Both options are likely to bloat your package size by quite a bit, introduce installation and maintenance hassles, etc. It's probably better to just specify that R has to be installed to use your code.

Upvotes: 1

Related Questions