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
2
votes
1 answer

JFreeChart TimeSeries Axis in non-military time

I am trying to graph TimeSeries data in Java using JFreeChart, however the data consists of doubles that are the output of calls to Renjin. The code to add the data to the TimeSeries is as follows: for (int i=0; i
jstrieb
  • 599
  • 1
  • 7
  • 20
2
votes
2 answers

No Class Found: com.google.common.collect.Lists

I am attaching a screen shot of the problem that I am facing with Renjin Engine. Please see the image below. I'm not able to load the Renjin Engine The debug output is also attached in the picture. Can you please help me debug this?
balu
  • 89
  • 1
  • 2
  • 11
2
votes
1 answer

Running Forecast in Renjin

I need to execute some R scripts that process timeseries and perform forecast over them. I am using the forecast package and everything works fine when executing the script from R console. However, I always get the same exception when trying to do…
Smajl
  • 7,555
  • 29
  • 108
  • 179
2
votes
1 answer

Is opencpu useful as an API called by a web service?

Hi Opencpu is a really cool tool. But now I want to use a Data Processing Unit (DPU) in a web-service. Can it be used in a production environment where there are lots of requests which call r functions and scripts which only require a short amount…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
2
votes
1 answer

Running simple `Renjin` example on net-beans, with Java code : "Using R within a Java project"

Im tring to run this example from the Renjin website, http://www.renjin.org/documentation/developer-guide.html , im tring to run the first "A simple primer" example. following is my directory layout: And here is my code: package…
Yehoshaphat Schellekens
  • 2,305
  • 2
  • 22
  • 49
1
vote
0 answers

Calling R script from Java using Renjin and pass binary as parameter

We have Java web application running in Tomcat. We want to integrate R scripts (code already exist) into our application and planning to use Renjin to accomplish that. We will crate simple UI where the User can select and upload couple of files…
Nikata
  • 11
  • 1
  • 2
1
vote
1 answer

Renjin cannot install (default) packages

I am new to Renjin and cannot install packages with the AetherPackageLoader. I am getting the same error as in Renjin can't load pckages but with a seemingly correct Gradle file (please notice the a4Base dependency): testCompile group: 'junit',…
Miguel
  • 11
  • 3
1
vote
0 answers

Error : replacement has x rows, data has y

I am running this R script from Java (I am using Renjin): getCoefficients <- function(x, y, Regions) { nbRegions <- length(Regions) lengthY <- length(y) colRegions <- NULL from <- 1 to <- lengthY / nbRegions for (i in 1:nbRegions) { …
AMAY
  • 67
  • 1
  • 7
1
vote
1 answer

How to use Renjin Maven plugin with c and fortran

I'm trying to use "Renjin Maven plugin" to convert an R package to a jar that I can use with renjin in java. There is a description here: http://docs.renjin.org/en/latest/writing-renjin-extensions.html#renjin-maven-plugin on how to create the…
korsgaard
  • 84
  • 8
1
vote
1 answer

org.renjin.eval.EvalException: Exception calling R_parse : Unsupported pointer store to a memory region allocated for primitives

I am trying to run the following code from Java using org.renjin Package. library('org.renjin.cran:jsonlite') data <- stream_in(file("src/main/resources/Events.json")) print(data$timestamp) I am getting the following…
Student369
  • 21
  • 3
1
vote
0 answers

How to convert Java ResultSet to R DataFrame?

I want to convert resultset table data to dataframe from Java to R. Get the ResultSet in Java and convert it to R compatible format and use the same as dataframe in R.
1
vote
1 answer

Renjin can't load pckages

I'm a newbie with Renjin. I'm trying to use Renjin in a Java application. I'm trying to develop the example showed here. I'm compiling with gradle, as recommended in the renjin's web page. So, with gradle build all is ok when I run gradle build.…
1
vote
1 answer

IOException while loading package org.renjin.cran:rgeos: Could not resolve native method 'rgeos_Init' in package 'rgeos'

Hi I am new to R language and renjin. In my project following is the maven dependency added. org.renjin.cran rgeos 0.3-2-b24 I…
1
vote
1 answer

Moving data between Java and R using renjin

I'm trying to move data between Java and R and vice-versa (as a dataframe) using Renjin. Searching in Stackoverflow I've find something that at first I've thoutht it would work but It wouldn't because I've got the R data in Java as an externalptr.…
neyanog
  • 13
  • 3
1
vote
1 answer

FileReader can't find R Script

I try run my R Script within JavaFx. I use Renjin for this purpose and it seems to work properly with statements I run internally. But I want to run an external R Script. The project is set up with Maven so the path should be easy as the R Script is…
j3ypi
  • 1,497
  • 16
  • 21