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

CoreNLP in R, doesn't work in RStudio, but works well on shell

I'm working with R on Ubuntu, I want to use the CoreNLP package and I have a weird behaviour. When I use a shell, everything is fine, for instance I can run: $ R R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for…
ACCaminero
  • 33
  • 4
0
votes
1 answer

R Studio 3.3.0 cannot load xlsx and rJava packages under Win 10

library(rJava) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching…
billmic
  • 61
  • 1
  • 3
0
votes
2 answers

Passing an R function as a Java method parameter

I have a problem that I'm trying to solve for a couple a days now. The problem sounds like this: I have a function in R : f <- function(x) { x ^ 3 - x ^ 2 - 4 * x + 2; } but I want to use it in Java, for example as follows: double y = f(5). How…
ashcrok
  • 234
  • 3
  • 16
0
votes
1 answer

statET eclipse plugin, JRI.jar not found

I installed statET in eclipse on mac. upon run/debug, I get init JRI/Rengine failed. java.lang.RuntimeException: JRI.jar not found. the jar is definitely there in /Library/Frameworks/R.framework/Versions/3.3/Resources/library/rJava/jri and the…
bhomass
  • 3,414
  • 8
  • 45
  • 75
0
votes
1 answer

In continuation to previously asked "Unable to work with R-extension in NetLogo"

After changing all the needed environment varaibles ( Control Panel/ System/Advanced system settings/Environment Variables) in windows 8, when I am installing rJava Package I get errors as below I tried in MsDOS immediately after changing…
Abha Trivedi
  • 205
  • 2
  • 12
0
votes
1 answer

Issues with rJava and Terminal inputs for Mac

I am trying to update RJava to reflect the latest version of Java 1.8 on my mac. I think I found the right information in doing so but the issue arises when I use 'Terminal' to run some code. I have to run: sudo R CMD javareconf -n but I receive an…
aselvendran
  • 105
  • 2
  • 9
0
votes
1 answer

R: rJava package fails to load

I've installed the rJava pack successfully. However, when I run the command library(rJava), I get the following error. > library(rJava) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error:…
An old man in the sea.
  • 1,169
  • 1
  • 13
  • 30
0
votes
1 answer

Error running MaxEnt from within 'biomod2' in R

I am trying to fit some species distribution models using the biomod2 package in R. I have compiled all of the required data such that biomod2 successfully fits models using all techniques except MaxEnt, which throws an error: Error in file(file,…
Andrew
  • 516
  • 1
  • 6
  • 17
0
votes
0 answers

Multiple session initiation from Java front end to R

We have front end web page developed using Java. In the back end we are doing some modelling using r. Now Java to R multiple instances initiation is not happening. Only one user can upload his data and do his analysis on that application web page.…
vadi
  • 1
0
votes
1 answer

rJava 'class not found' error with makeCluster

I'm having this issue for a while now and can't find answers online. I try to execute makeCluster and somehow get this Error in .jfindClass(as.character(driverClass)[1]) : class not found library(doParallel) library(foreach) cores =…
valuenaut
  • 303
  • 2
  • 4
  • 13
0
votes
1 answer

Error while using rSymPy

I recently installed rSymPy to perform some symbolic calculations in R. This step also installed some dependencies (“rJava”, “rjson” and “rJython”). After the installation was complete, I loaded the library and ran a very simple command which gave…
0
votes
1 answer

Installing rJava on SLES 12

I am attempting to install rJava on Suse SLES 12. I have installed JDK 7 (7u51), fixed my JAVA_HOME, run sudo R CMD javareconf and installed the package suggested here: rJava won't install on openSUSE 13.2. gcc -std=gnu99 -o libjri.so Rengine.o…
waternova
  • 1,472
  • 3
  • 16
  • 22
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
2 answers

Issue with R packages installed with root

For some reason, I could not install the rJava package without root privilege (using sudo R and then install.packages('rJava')). It should have solved my problem, however I can only use this package when launching R with sudo R. If I launch it…
milbil
  • 1
  • 1
0
votes
1 answer

How to call String[][] in R using rjava

I am preparing an R wrapper for a java code that I didn't write myself (and in fact I don't know java). I am trying to use rJava for the first time and I am struggling to get the .jcall right. Here is an extract of the java code for which I write a…
franchong
  • 1
  • 1