Questions tagged [rcaller]

RCaller is a LGPL'ed library for calling R from Java. It is easy to use, practical and handy tool. It is in-efficient by means of CPU time, memory efficiency and some other issues.

52 questions
5
votes
4 answers

Calling R from Java - Faster alternative to RCaller

I tried RCaller 2.0 to call R functions from Java and I managed to make it work after a few tries. Integration was pretty easy but RCaller is kinda slow at runtime. I'm afraid that RCaller 2.0 won't be suitable for my application since I have to…
Marsellus Wallace
  • 17,991
  • 25
  • 90
  • 154
2
votes
1 answer

RCaller throws java.io.IOException/ExecutionException

When I want to run some code through RCaller, Java throws the following exception: Exception in thread "JavaFX Application Thread" com.github.rcaller.exception.ExecutionException: Can not send the source code to R file due to: java.io.IOException:…
Azeros
  • 89
  • 8
2
votes
1 answer

How take database table from java to R using Rcaller?

I am currently doing an analytics regression based on mysql database using rcaller. Now I'm stuck on how to take databse table from java to R. This is what I have tried. Class.forName("com.mysql.jdbc.Driver"); conn =…
Manel Chaabene
  • 187
  • 1
  • 3
  • 14
2
votes
3 answers

How to call R Script file from RCaller java?

My project has some R files prebuilt and I need to invoke them from Java layer. I cannot figure out a way to provide RScript file path to RCaller. Need help to call RScript file from RCaller Java.
Sushant Gupta
  • 1,487
  • 2
  • 16
  • 23
2
votes
1 answer

RCaller - What exactly should setRscriptExecutable() point to?

What filepath should setRscriptExecutable() point to? I've Googled it, but nothing related to what I need comes up.
ws04
  • 45
  • 9
2
votes
0 answers

forecast values are changed while reading results using rcaller

I am trying to forecast some data from java with R integration using rcaller. similar to code sample in rcaller(https://github.com/jbytecode/rcaller/blob/master/RCaller/src/main/java/examples/ForecastExample.java) After reading results from r and…
jack
  • 49
  • 9
2
votes
0 answers

Can't get RCaller to to run simple example

I am trying to run this simple example of RCaller on my windows 7 machine. RCaller caller = new RCaller(); RCode code = new RCode(); caller.setRscriptExecutable("C:\\Program…
kpez
  • 21
  • 2
2
votes
1 answer

Streaming plots from R to Java without saving the plot

I am using Rcaller with Vaadin framework to make a program for running R-scripts from browser. One feature should be the ability to draw plots. This is not terribly difficult in itself, there are ways to do this with Rcaller. However, as far as I…
Valtteri
  • 463
  • 1
  • 5
  • 11
2
votes
1 answer

Using JaCop in Java to optimize a function

I'm trying to use the JaCoP library in Java for optimization but I have some trouble translating my functions. I have a bunch of variables, say: x1 to xn and I have a function using them to output a maximum likelihood estimator (though it could be…
Pane
  • 555
  • 2
  • 7
  • 20
2
votes
2 answers

how rcaller get results by runAndReturnResult

How to use Rcaller to get more than one result in one time? For example,I use code.addRCode("data<-read.table(\""+ "/home/yo/Documents/Book1.csv"+ "\", header=TRUE,sep=\"\t\")"); caller.setRCode(code); caller.runAndReturnResult("data"); Then,I can…
Weiqi Wang
  • 29
  • 4
2
votes
0 answers

Loading Java-based R packages (e.g. XLConnect) using RCaller

I am calling R Scripts from Java using R Caller 2.0. I would like to load Java-based packages like XLConnect but I get the error 'Could not find function "LoadWorkbook"'. I can not post more of the error here as the Java application that I use was…
Richi W
  • 3,534
  • 4
  • 20
  • 39
2
votes
1 answer

Calling R in java-Rcaller

I am trying to implement clustering using R in java by employing R caller. I am trying to run sample code for clustering validation and I get that common error faced by most of the users: Premature end of file package test; import…
user2007506
  • 79
  • 2
  • 8
2
votes
0 answers

Java RCaller - basic example not working

I have R installed here: C:\Program Files\R\R-2.15.2\bin\ Where I find my "Rscript.exe" and "R.exe" I am using the code sample found here I have added my rCaller reference for RCaller-2.0.7.jar When I run the code 1 - I cannot have just the path…
jason m
  • 6,519
  • 20
  • 69
  • 122
2
votes
2 answers

Invoke R Language/script from java

How do we invoke R language / R script from java? Basically I need java kind of wrapper around R script. Data will be given to java layer say method setData(double[]) which should in turn sends to R script - let us say setDataR(double []) method.…
sset
  • 147
  • 1
  • 8
2
votes
2 answers

Rcaller 2.0 generated plot is rendering and empty output and the file (png) generated is also empty?

The Rcaller 2.0 generated plot is rendering an empty output and the file (png) generated is also empty? posting the link for the code i have used http://stdioe.blogspot.in/2011/07/rcaller-20-calling-r-from-java.html I used the code in the link…
sundeep
  • 601
  • 1
  • 8
  • 21
1
2 3 4