Questions tagged [jri]

JRI is a Java/R Interface, which allows to run R inside Java applications as a single thread.

JRI comes bundled with rJava, so the best way is to simply install rJava. It is available from CRAN, so you can use in R:

install.packages("rJava") 

JRI uses native code, but it supports all platforms where Sun's Java (or compatible) is available, including Windows, Mac OS X, Sun and Linux (both 32-bit and 64-bit).

143 questions
0
votes
1 answer

Getting null from R script which performs long-running query

I have an R script that retrieves data from a database, performs some operations on it and provides me with data I want to retrive in Java using JRI beforeQuery <- c(1) query <- {{Query}} .... queryResult <- fetch(queryResultSet,1) The Java code…
punitjajodia
  • 92
  • 1
  • 7
0
votes
1 answer

How to pass data from Java code to R code periodically

I have java code which is collecting about 100 events per minute. I have to pass these events to R code (in turn R code may call back to my java code). I donot like to send them in batches and would like to hand over the messages to R code as soon…
kashili kashili
  • 955
  • 4
  • 15
  • 31
0
votes
1 answer

Executing an R script in a way other than using source() in JRI

I am new to R and have been trying to use JRI. Through JRI, I have used the "eval()" function to get certain results. If I want to execute an R script, I have used "source()". However I am now in a situation where I need to execute a script on…
0
votes
1 answer

JRI and ARIMA integration

I have one last question, but I really need help on this one. The very last thing for my project is that I have to make ARIMA, to work under JRI. All everything is working, but one little piece of code is not working properly. Here's the code: …
0
votes
1 answer

How to put ArrayDeque in JRI and do some forecast with R

I have a calculator, which I am going to use for some forecast. I have JRI running and the very last thing is to take the data from an ArrayDeque and give it to JRI to its job. I was thinking about something like this, but it's not…
0
votes
1 answer

R JRI java integration

I need help on this one: I installed JRI, everything is working. I can start the examples provided with rJava, but when I try my own code it's just a disaster. Here's the…
0
votes
0 answers

Java Webstart: JRI (Java R Interface) as nativelib in JNLP not found

I am trying to load the JRI in my webstart-application. I always get this exception: Cannot find JRI native library! Please make sure that the JRI native library is in a directory listed in java.library.path. JNLP file: ... ... …
Anon
  • 44
  • 4
0
votes
1 answer

JRI for c++ , can't figure our method signature

I'm using JRI inside visual studio 2012, and I'm calling this function: jmethodID jmMainMethod = env->GetStaticMethodID(jcJclass, "loadModel", "([Ljava/lang/String;)V"); The actual function in javascript is something like this: var lp =…
user2426290
  • 382
  • 2
  • 14
1 2 3
9
10