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.
Questions tagged [rcaller]
52 questions
1
vote
0 answers
JRI program terminates java during REngine creation
I want to call an R script using Java. I am trying the JRI method to call the R script. However my JVM gets terminated when creating an Rengine.
I am running one of the examples which has been provided alongside rJava library installation in R.
Code…

Anup Hegde
- 11
- 1
1
vote
0 answers
Error when using RCaller to perform survival analysis
import java.io.IOException;
import java.lang.Runtime;
import rcaller.RCaller;
import rcaller.RCode;
public class SurvivalAnalysis {
public static void main(String[] args) throws IOException{
RCode code = new RCode();
…

Chaitu Konjeti
- 11
- 4
1
vote
2 answers
Rcaller not giving back variables
When integrating R with Java with RCaller, I never get back any variable that is created within the script. There seems to be a fundamental missunderstanding how RCaller works. Isn't it that all the variables in the Environment can be parsed from…

Roland Kofler
- 1,332
- 1
- 16
- 33
1
vote
0 answers
Rcaller issue in parsing the strings
I want to see the distinct items in the column, but I get the following error:
rcaller.exception.RCallerParseException: Variable data_item not found
The below is the code that I have used:
code.addRCode("data<-read.csv(x)");/*x is the path of the…
1
vote
0 answers
Rcaller can't load rJava
I have this issue on linux when library (rJava) with rCaller through Rscript in java side:
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error:Loading required package: methods
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error:Error :…

user3567601
- 241
- 1
- 2
- 4
1
vote
2 answers
R, Java, RCaller
So i'm trying to use RCaller to do the following (in psuedo-code):
x=simarray(..) // in java
'send x to R'
run y = rlogcon(40000, sort(x)) //in R, rlogcon is part of rlogcondens and the function
produces a numeric vector of length 40000
//send y…

user3718600
- 21
- 3
1
vote
1 answer
rcaller 2.2 and 2.3 do not stop in sequential command mode with runAndReturnResultOnline
I'm working on a Windows 7 machine with R 3.1.0. I downloaded rcaller 2.2 and the latest 2.3 and followed the example of Sequential Commands in the tutorial. However, the program does not stop in Eclipse after the last line of code is executed.
The…
user959704
1
vote
0 answers
How can I plot a 3D graphic using rcaller?
I´m trying to plot a 3D graphic but unfortunately doesn´t worked so far.
I´m using the follow code
RCaller caller = new RCaller();
Globals.detect_current_rscript();
caller.setRscriptExecutable(Globals.Rscript_current);
…

Lima
- 11
- 1
1
vote
1 answer
Rcaller executing a function from .R file
I am trying to execute a R file from java, here is the code i have tried.
RCaller caller = new RCaller();
RCode code = new RCode();
caller.setRscriptExecutable("D:\\R\\R-3.0.2\\bin\\Rscript.exe"); …

Magic
- 505
- 2
- 6
- 19
1
vote
1 answer
Java RCaller reuse a function
I'm using RCaller in order to execute a R file in Java.
Basically, it looks like this:
RCaller caller = new RCaller();
RCode code = new…

Chris
- 3,057
- 5
- 37
- 63
1
vote
1 answer
RCaller get matrix of unknown size
I'm using RCaller in Java in order to execute an external R program.
The problem is, that I don't know the exact size of the matrix but the .getAsDoubleMatrix() method wants to have the size.
double[][] matrix =…

Chris
- 3,057
- 5
- 37
- 63
1
vote
1 answer
Rcaller adds q character to end of StringBuffer
I am using RCaller to call R from Java. See the following Java code:
RCaller caller = new RCaller();
RCode code = new RCode();
caller.setRscriptExecutable("/usr/bin/Rscript");
caller.cleanRCode();
String x = "is.installed <- function(mypkg){ \n" +
…

CodeGuy
- 28,427
- 76
- 200
- 317
1
vote
2 answers
Java and R bridge
I want to run r-script from java. I have the following code, but giving null:
try {
RCaller caller = new RCaller();
caller.setRscriptExecutable("C:/Program Files/R/R-3.0.1/bin/x64/Rscript.exe");
caller.cleanRCode();
…

Oyindamola 'Funmi Oni
- 305
- 1
- 3
- 5
1
vote
1 answer
R - concurrent access , on server
I am currently developing a small program in Java that will access R to perform some calculations and generate plots. I'm using RCaller as a bridge to R from within Java. I have tested my program with R installed on my machine and it works fine.
I…

Ajit Singh
- 115
- 11
1
vote
2 answers
RCaller Java Premature end of file aka XML file is empty
I am writing program using RCaller 2.1.1-SNAPSHOT. Problem is when I use code from external library it says Routput file is empty. Here is my code:
Random random = new Random();
RCaller caller = new RCaller();
RCode code = new RCode();
…

CodeR2005
- 11
- 2