FAQ Database Discussion Community

Problems requiring rJava in Windows

I am using a 64-bit machine, with the latest version of R (3.1.2), the latest RStudio version (0.98.1091) and the latest JAVA (Version 8 Update 31). I tried to require rJava (rJava_0.9-6) and the result is the following error: require(xlsx) Carregando pacotes exigidos: rJava Error : .onLoad falhou em loadNamespace()...

how to pass a rJava .jnew call multiple parameters?

the documentation describes how to pass a single parameter. No worries there. My challenge is trying to pass multiple parameters to java constructors that take them. For example: foo <- .jnew("some/java/class/that/takes/two/parameters", ???) Comma delimiting doesn't work, nor does putting a space between them. How does one do this? ...

Using Travis with R and rJava

I have an R package which depends on rJava. I am using the R support for travis language: r sudo: required warnings_are_errors: true r_github_packages: - keboola/redshift-r-client But it fails with error: Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load...

Setting up Java R Interface (JRI) on Windows

I have followed guides on the web and looked at questions on stackoverflow but I am still not able to set up JRI on Windows. Here are the steps I have taken: 1) Install R 2) Execute install.packages("rJava") in R to install rJava 3) Create a R_HOME system variable with...

rJava won't install on openSUSE 13.2

I'm trying to install rJava on a fresh install of openSUSE 13.2. JRE and JDK are both installed. When using install.packages() it actually works fine and compiles some stuff, but then the first error messages that I get are these: mp -L/usr/lib64/R/lib -lR -lrt -ldl -lm -licuuc -licui18n /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot...

JRI: how to get the console output in a Java String

I declare the JRI engine as follows in my Java program: REngine eng = REngine.engineForClass("org.rosuda.REngine.JRI.JRIEngine", args, new REngineStdOutput(), false); This works fine however I would like to get the console output in a Java String instead of the Java console. I researched REngineStdOutput but couldn't find much. Any ideas? ...

rJava: calling a Java function to retrieve a list of objects

I need to get in R a list of objects from Java. In the code below I succeeded in getting the list in R (the length of the list is correct) but I cannot see the objects content. This class represents the objects: package mypackage; public class ValueObject public String...

how to call Java method which returns any List from R Language? [on hold]

How to call java method which returns list from R Language.

How to represent NA in rJava

I have a scala program that produces some time series data to be used in R. The data values are Doubles with some missing values but I don't know how I should represent these NA values in my scala program?

rJava not loading in R

So I tried everything I found online but with no luck. I am trying to use qdab library that requires rJava. So I install rJava, try to run library("rJava") and get > library("rJava") Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: JAVA_HOME cannot be determined...