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
1
vote
0 answers

Renjin : printing "externalptr"

From Java code I'm pushing into Renjin a data.frame. The fisrt vector of this data frame contains native Java objects as ExternalPtr. Everything works fine including accessing those objects from R code. Nevertheless, I noticed that printing those…
Marc Polizzi
  • 9,275
  • 3
  • 36
  • 61
1
vote
1 answer

Renjin : engine.eval returned value

In Renjin, what is the actual value returned by : engine.eval("...") For example: df <- data.frame( 1 ) df[["X1"] <- df[["X1"]] * 10 returns a DoubleArrayVector with the single 10 value. I guess this is the last computation. df <- data.frame( 1 )…
Marc Polizzi
  • 9,275
  • 3
  • 36
  • 61
1
vote
1 answer

Working with date and times in Renjin

I'm a bit lost, how can I pass to renjin an array of datetime (going though string would be really a pain). It can be a Joda or Java dateTime class or similar I haven't found either a datetime type.
ic3
  • 7,917
  • 14
  • 67
  • 115
1
vote
1 answer

Renjin does not recognise german umlauts

I have a file which extensively uses the german umlauts. I wrote a script to process the file which works as it should in native R (RStudio). Unfortunately, while using Renjin, all umlauts are set to unknown characters within the strings of the…
Tobias
  • 564
  • 3
  • 13
1
vote
1 answer

Migrating setLibraryPaths method from 0.6.8 version

We are migrating Renjin to the latest version and as part of the settings we included a directory with user defined R libs. How can we migrate the following line ? renjinContext.getGlobals().setLibraryPaths("/home/renjin/r-libs"); thanks
ic3
  • 7,917
  • 14
  • 67
  • 115
1
vote
2 answers

Convert CSV file contents to Markdown

Background The objective is to read from a CSV file and write the contents in a Markdown table format. The application uses the R engine Renjin, which does not support knitr, kable, or pandoc. Problem The write.table command has an eol option, but…
Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
1
vote
2 answers

Load .RData from an R script in Scala using Renjin

I have an R script load.R that attempts to do load("test.RData") When I run: engine.eval(new FileReader("load.R")) An exception occurs: Exception in thread "main" java.lang.NoClassDefFoundError: org/tukaani/xz/XZInputStream at…
pedromss
  • 2,443
  • 18
  • 24
1
vote
1 answer

Iterate through a Vector in java

I am retrieving values from an R script (using the Renjin library) and then trying to manipulate them in java. The R script returns a ListVector which looks like: c(1L, 2L, 3L, 4L, 5L...10 elements total) c(0.70836348202446, 3.27419352963856,…
Sebastian Zeki
  • 6,690
  • 11
  • 60
  • 125
1
vote
1 answer

Unit tests only fail when run by maven

I'm currently facing the problem that my unit tests are passing when run by eclipse but failing when run by maven. This is the repository (+ pom.xml): https://github.com/thorstenwagner/ij-trajectory-classifier Here is the build…
twa
  • 101
  • 5
1
vote
2 answers

Renjin - could not find function 'png'

I am a newbie to Renjin, but experienced in java. My R coding skills are slowly picking up, I am able to run the following script in RStudio data("iris") dev.new() png(filename = "test21.png") plot(iris) dev.off() and I can get a png output with…
xavier
  • 11
  • 1
1
vote
1 answer

Integrating java with R using renjin

I want to connect R to postgresql through Renjin for which I am using engine.eval("library(RPostgreSQL)"); getting folllowing error org.springframework.web.util.NestedServletException: Request processing failed; nested exception is…
Raaj
  • 31
  • 5
1
vote
1 answer

run R code from Java Servlet

I am trying to run some R code from a Java Servlet running in Eclipse as IDE on TomCat 7.0. The END goal is to create a website running on TOMCAT or JETTY to show Graphs + Data made with existing R code that the R function returns as Base 64 code…
irJvV
  • 892
  • 8
  • 26
1
vote
0 answers

org.renjin.eval.EvalException: Namespace org.renjin:tools has no symbol named '.get_internal_S3_generics'

I need to extract keywords from News data saved as a text file using my java web application. I am using Language R and Renjin for doing this text mining (package tm from Renjin Web site) and extract keywords. The script really works in RStudio but…
1
vote
1 answer

Run Renjin Java-API on Wildfly 9

i'm trying to run R Renjin Script Engine on Wildfly 9. When i run my Java/Renjin Application, which works fine on local execution, by using it on Wildfly as EJB-Project i get the error: Caused by: java.lang.RuntimeException: Renjin Script Engine…
J Hi
  • 55
  • 7
1
vote
1 answer

Support for R forecast in Renjin

Have anyone managed to use R Forecast package in Renjin? There currently seems to be some problem with the build when looking at the Renjin website
Miquel
  • 11
  • 2