Questions tagged [rjava]

rJava is an interface between R and Java.

rJava is an R package providing interfaces between R and Java. As a package rJava allows R code to instantiate a Java VM, create Java objects and call Java methods. It also includes JRI (Java/R Interface) which conversely embeds R into a Java application.

613 questions
0
votes
1 answer

package rjava jcall error in R

I want to use R to input a parameter into Java, for example "1000". Then method of StringToNum process and output its return to R,namely 1000. Seems it is the work of .jcall(), but I dont know how to do with its parameters.As I dont know Java, Could…
Bylon
  • 21
  • 1
  • 6
0
votes
2 answers

Making MagicTextView a library causing R can not resolved to a variable

I was trying to import MagicTextView to my project so that I could make the TextView's innerflow visible. I import it using the File->import->Existing Project into workspace and make it a Library by clicking on "Is Library" of "Android" tab of…
Saty
  • 2,563
  • 3
  • 37
  • 88
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
2 answers

rJava .jcall return type issue

I am facing an issue with returning any type of array with .jcall(). Here is my code. public class Test(){ public static double[] sample(){ double[] nobjarr = new double[5] nobjarr[0] = 1.0; nobjarr[1] = 1.0; nobjarr[2] = 1.0; …
0
votes
0 answers

R unable to load package Snowball, rJava

I am trying to get the R package "lsa" running, which in turn requires Snowball, which in turn fails. I'm running OpenSUSE 12.2 with the latest R-patched build (currently 3.01). Here's the thing: the libraries load no problem if I do "sudo R" but if…
WorldsEndless
  • 1,493
  • 1
  • 15
  • 27
0
votes
1 answer

SDMs in R problems with Java Memory `

I have tried using this command to increase the memory availability for running MaxEnt in R : options( java.parameters = "-Xmx1g" ) as suggested by the dismo pacakge to increase the access to RAM but this then leads to a new error: "Error in…
I Del Toro
  • 913
  • 4
  • 15
  • 36
0
votes
0 answers

How to store a very large data.frame in an excel workbook?

I have a very large data.frame, which has 9000 obs. of 1600 variables, and I need to store it in an excel workbook. I have tried XLConnect package, but I got this error back: Error : OutOfMemoryError ( Java ): Java heap space I also tried to set…
zeno tsang
  • 735
  • 1
  • 6
  • 16
0
votes
1 answer

Error attempting to use rJava from a web application

I am using R version 2.15.2 on Ubuntu 11.04. JAVA_HOME variable is set to /usr/lib/jvm/jdk1.6.0_21. To be able to use load rJava from R I have to set JAVA_HOME to $JAVA_HOME/jre. However, I am unable to use rJava from an R script invoked by an R…
kostas
  • 1,959
  • 1
  • 24
  • 43
0
votes
1 answer

Error rJava 64bit R&Eclipse

I have been trying to switch to 64-bit environment but i get stuck with rJava not working. I have followed thread where people where having the same problem and their solution (JDK, JVM.DLL, environment variables etc..) but i am still stuck Here is…
pam
  • 676
  • 1
  • 7
  • 27
0
votes
1 answer

Java runtime segfaults when saving large data.frame from JRI

I've followed the rtest.java example code from the rJava installation (/usr/lib/R/site-library/rJava/jri/examples/rtest.java on Debian and derivatives) for building data.frames from java arrays. This works well for small data frames (~10000 rows),…
0
votes
1 answer

Class not found Exception in RConsole

I have a es.r script which is written in rJava.So My R script internally calls my Java functions . I created a batch file for setting the classPath with all the dependencies . I am able to run the script in terminal using Rscript.But when I try to…
user1790894
  • 407
  • 3
  • 9
  • 17
0
votes
1 answer

compiling rJava on Ubuntu

I am unable to compile rJava from source. Configure is not creating a Makefile even though it says it is. configure: creating ./config.status config.status: creating src/Makefile config.status: creating Makefile config.status: creating…
user1003932
0
votes
1 answer

how to call an abstract class method?

I am trying to create an R function that taps into my JAVA code. I have an abstract class, let's say StudentGroup, that has abstract methods, and one method getAppropriateStudentGroup() which returns (based on config) a class which extends…
Sarah
0
votes
2 answers

RJDBC not loading as a library in Rapache

So I need to get access to an MSSQL server in my Rapache program and when I try to load RJDBC as a library in my Rapache code I get server error. In the logs it looks like this: referer: http://10.21.8.145/ Error : .onLoad failed in…
Nick Trileski
  • 151
  • 1
  • 2
  • 8
-1
votes
1 answer

Struggling with rJava and dependent packages in Rstudio Mac M1. Error: package or namespace load failed for ‘rJava’:

I'm really struggling with rJava. I have a new machine (Mac M1) and am running r code from an older project on an old intel Mac, and it isn't working at all. I am not especially familiar or confident with this, or using the terminal so please bare…
Gabriella
  • 421
  • 3
  • 11
1 2 3
40
41