Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Latest commit

 

History

History

r_java_embedding

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The whole data frame printed in R:
  id    name language
1  1 Florian   Python
2  2   Lukas        R
3  3    Mila     Java
4  4   Paley      Coq
5  5  Stepan       C#
6  6   Tomas     Java
7  7  Zbynek    Scala
---------

Filter out users with ID>2:
  id   name language
3  3   Mila     Java
4  4  Paley      Coq
5  5 Stepan       C#
6  6  Tomas     Java
7  7 Zbynek    Scala
---------

How many users like Java: 2

Embedding R as a scripting language into JVM applications

This demo shows how to embed FastR into Java application and how to share data between Java and R. The Java program only needs to implement few proxies to transform the data into the shape of a data frame and then the R code can work with the data like with any other data frame. There is no need to copy or marshal the data between the two runtimes.

Setup

Follow the instructions from the top level README to install and setup GraalVM. Build the sources with ./build.sh.

Run

The example can be executed using the run.sh script.

FastR Java API

TODO: