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
1
vote
0 answers

R language Strange behavior

I'm using some R code in order to use the model BG-NBD implementation I'm using Java and I call R by using RCaller. I must admit that i'm really really new to R so maybe I'm doing something wrong. I use the code on this URL:…
Angelo Immediata
  • 6,635
  • 4
  • 33
  • 65
0
votes
2 answers

Can't get RCaller to work, get error on line caller.runAndReturnResult

I am trying to use Rcaller with simple example code as follows public class rcaller { public static void main(String[] args) { RCaller caller = RCaller.create(); RCode code = RCode.create(); double[] arr = new…
d20gdx
  • 13
  • 6
0
votes
0 answers

Calling Java method from JSP not wotking

I am trying to call a java method('method1') that runs some r code(using RCaller) when a specific button is clicked on a JSP page('button1'), but when i click on the button it doesn't do anything and I am getting no errors in the output. I'm trying…
Flex89
  • 13
  • 9
0
votes
2 answers

Getting started with RCaller 3.1

I try to start with RCaller, but I fail at the very beginning. When I try to run any example, the line RCaller caller = RCaller.create(); gives the following Exception: Exception in thread "main" java.lang.ExceptionInInitializerError at…
Tom Grille
  • 11
  • 2
0
votes
1 answer

How to display dataframe in window using Rcaller

I am trying to display dataframe in a file using Rcaller library in java. But it seems does not work. The following code is what I'm trying to do: RCaller caller = new RCaller(); RCode code = new RCode(); code.addRCode("a=table(data$rate,…
Manel Chaabene
  • 187
  • 1
  • 3
  • 14
0
votes
1 answer

java.lang.NoClassDefFoundError: rcaller/RCaller in java-ee

I am trying to integrate regression R code into my j2ee project using R caller. My datasource is from mysql database. So I used RMYSQL as package. My code work fine under java project but when I moved it into backing bean class it throws an…
Manel Chaabene
  • 187
  • 1
  • 3
  • 14
0
votes
1 answer

Load data using RCaller

I want to load data which is embedded in an R package. I use GWmodel package and want to load LondonHP data. But when i try to load the data using RCaller in Java, the xml return is : This is my code to load the…
0
votes
1 answer

RCaller: prevent automatic error printing

I'm using RCaller to execute some analysis on a data frame within my Java application. More specifically, I want to run Coarsened Exact Matching using the CEM library of R. As far as CEM is concerned, it returns some data about the mathching, if any…
Roberto
  • 243
  • 1
  • 5
  • 15
0
votes
0 answers

RCaller not available in Maven version of R3.2.2 and below

I am using RCaller to execute my R commands within java Caller caller = new RCaller(); RCode code = new RCode(); caller.setRscriptExecutable("C:\\Program Files\\R\\R-3.2.2\\bin\\Rscript"); caller.cleanRCode(); …
Devz
  • 5
  • 1
  • 2
  • 9
0
votes
0 answers

Rcaller file returning as empty

I am relative new to R and am attempting to call R from my Java code. I was using rJava but faced errors and so switched to rCaller. However, while executing a sample test code the output is coming as empty file. Can anyone shed some light on this?…
Ayon
  • 315
  • 3
  • 20
0
votes
1 answer

p-value calculation using Java

I want to make a Java program to calculate the P-value of my data that I want to upload, but getting too much trouble to do so. The data is been read by the Java program, but next step is to solve data for getting p-value. The input file is: The…
Aju.k
  • 23
  • 4
0
votes
1 answer

rCaller generates an empty Image and empty plot

I'm trying an example in eclipse running on windows 8, JRE 7, RCaller 2.4 and R-3.0.2. I also ried R-3.1.1. But when the plot is generated it appears empty, and it shows no exceptions or errors. When I looked up the generated plot it has a size of 0…
slowessam
  • 115
  • 1
  • 3
  • 10
0
votes
3 answers

rcaller IOException at runAndReturnResult

I am trying to connect R from java using RCaller and here is my code RCaller caller = new RCaller(); RCode code = new RCode(); caller.cleanRCode(); caller.setRscriptExecutable("C:/Program Files/R/R-3.0.2/bin/Rscript.exe"); code.addRCode…
Magic
  • 505
  • 2
  • 6
  • 19
0
votes
2 answers

How To Use Rcaller with Java Servlet and read CSV file

I'm using R programing to analysis FFT . now I want to make Java web application/ java servlet and calling R to use Rcaller/Rcode for it . I have some reference about Calling Rcode in java application.…
0
votes
2 answers

Rcaller simple code - Error loading Runiversal

I have the follow Java code that uses Rcaller. RCaller caller = new RCaller(); RCode code = new…
CodeGuy
  • 28,427
  • 76
  • 200
  • 317