Questions tagged [renjin]

Renjin is an R language interpreter for statistical computing that runs on a Java Virtual Machine (JVM).

Renjin

Renjin is an R language interpreter for statistical computing that runs on a Java Virtual Machine (JVM).

Renjin can outperform the standard GNU implementation of R when working with larger datasets. Additionally, Renjin offers easy integration with other software written for Java Virtual Machines, among other advantages.

Official documentation

Support for CRAN or Bioconductor packages

StackOverflow questions often pertain to errors with the CRAN or Bioconductor packages in Renjin. Before asking a question, check the package list to ascertain if the package in question is supported.

See Also

90 questions
0
votes
1 answer

NoSuchMethodError org.renjin.gnur.api.Utils.R_qsort_I

Trying to execute RandomForest on sample dataset, but facing method was not found issue as below. Using the below libraries. Using these external…
0
votes
1 answer

Jar file not running when project and Renjin get compiled using a single Jar?

I'm making a java project on Eclipse that is using Renjin.jar file. The project run fine on IDE but when I export it to an executable jar file, it does not work or work partially until it reach a Renjin.jar part.
Long Phan
  • 1
  • 1
0
votes
1 answer

Renjin 'IOException while loading package' on Elastic Beanstalk

I have a solution that relies on Renjin + Forecast package that works either locally or on a typical EC2 server in Amazon. However, when deploying this same solution on an elastic beanstalk environment I get the following error when initializing the…
epol
  • 1,022
  • 8
  • 18
0
votes
1 answer

Exception in thread "main" org.renjin.eval.EvalException: Could not resolve native method 'dplyr_combine_vars' in package 'dplyr'

I am getting following error when running R through renjin , can someone help me I am using following packages library(dplyr) library(downloader) when I run through R studio it works fine but not through renjin. I can put more details about…
Umer
  • 15
  • 1
  • 5
0
votes
1 answer

Exception in thread "main" org.renjin.eval.EvalException: Could not load package CHAID; tried org.renjin.bioconductor:CHAID, org.renjin.cran:CHAID

When I am trying to run a R script in my Java web application using Renjin I am getting an exception- Exception in thread "main" org.renjin.eval.EvalException: Could not load package CHAID; tried org.renjin.bioconductor:CHAID, …
0
votes
1 answer

How to display output on textpane in java renjin?

I'm beginner in java and renjin. I need my output result show in my jtextpane, How I can do that? I'm so tired. If you know how to do it, please tell me. thanks RenjinScriptEngineFactory factory = new RenjinScriptEngineFactory(); // create a…
0
votes
1 answer

Renjin IOException while loading package Rweka, could not find function '.jfield'

I´m trying to execute a R script inside a Java program, all dependencies are installed with Maven but the problem still there. In my research to fix the problem I found that jfield is a function provided by rJava, but I am not sure if rJava (Renjin…
dFont
  • 3
  • 4
0
votes
1 answer

Get variables names from string expression in R (Renjin)

I'm using Renjin to evaluate R formulas from my Java program. Basically the user is typing an R formula in a text field, and I want R/Renjin to do the parsing for me, and return a list of the variables in that expression. Say if the user inputs a*b,…
gregseth
  • 12,952
  • 15
  • 63
  • 96
0
votes
2 answers

Sourcing multiple R files in

Currently I am using R on my local machine, where I am able to source multiple R scripts conditionally (as they are placed in my local drive). However when I need to use same scripts on RENJIN in Google Data Flow to achieve parallelism , I am unable…
0
votes
1 answer

Warning Messages in Renjin

I am using Renjin to use R code in Java. when I am running R code with syntax: "engine.eval(new java.io.FileReader("Forecast_temp.R"));" where "Forecast_temp.R" is the R code file. Renjin is showing some messages as given below Loading required…
0
votes
1 answer

Renjin/Java - Vector class to Java array class

I’m currently using Ro.getElementAsDouble(index) (code is below) to extract the values in Ro one by one into LogNormArray (double[]). But I worry that a copy is wasting memory. I’m very much a newbie to java so apologies if I’m thinking about this…
csta
  • 2,423
  • 5
  • 26
  • 34
0
votes
1 answer

Rsolnp in Java using Renjin

I am trying to run solnp from withing a Java program. To test that this is working, I am trying to just run the benchmarkids() function. But I can not solve the reference to the package. I've checked the Rsolnp package at…
Sheldon
  • 1,215
  • 1
  • 15
  • 29
0
votes
1 answer

Unable to create png using renjin

Hey I am trying create png file using renjin ,but it's giving me following error Object 'Cdevga' not found. More details :: renjin version > 0.8.2294 script > png('test.png') I also tried to use png('test.png',type = 'cairo') .. It gives error…
shivMagus
  • 315
  • 4
  • 9
0
votes
1 answer

Need help loading Script Engine into Karaf

Has anyone had any luck loading script engines into Karaf. I've seen some old links regarding loading script engines into OSGi containers: - https://devnotesblog.wordpress.com/2011/09/07/scripting-using-jsr-223-in-an-osgi-environment/ - Is OSGi…
mkwyche
  • 183
  • 2
  • 6
0
votes
1 answer

Can one renjin R script engine instance be used by multiple threads in parallel

As a newbie of renjin Java library user, I plan to make use of renjin ScriptEngine to execute computation on multiple threads in parallel. It is obviously fine to initialize an renjin ScriptEngine instance on each thread and then the initialized…
Rui
  • 3,454
  • 6
  • 37
  • 70