Skip to content
/ rscala Public
forked from dbdahl/rscala

The Scala interpreter is embedded in R and callbacks to R from the embedded interpreter are supported. Conversely, the R interpreter is embedded in Scala.

Notifications You must be signed in to change notification settings

alamit/rscala

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rscala: Bi-Directional Interface Between R and Scala with Callbacks

By David B. Dahl, Brigham Young University

The rscala package provides a two-way bridge between R and Scala enabling a user to exploit each language's respective strengths in a single project. The rscala package brings Scala and Java libraries into R with a simple interface. Specifically, Scala classes can be instantiated and methods of Scala classes can be called directly. Furthermore, arbitrary Scala code can be executed on the fly from within R, inline Scala functions can be defined, and callbacks to the original R interpreter are supported. Finally, rscala also enables arbitrary R code to be embedded within a Scala or Java application. The rscala package is available on CRAN and requires no special installations or configurations of R or Scala.

Install the package in R by executing:

install.packages("rscala") 

Note that if only want to embed R in a Scala application, you don't need to install the package. Simply add the following line to the your SBT build.sbt file:

libraryDependencies += "org.ddahl" %% "rscala" % "2.2.2"

Paper:

Resources:

About

The Scala interpreter is embedded in R and callbacks to R from the embedded interpreter are supported. Conversely, the R interpreter is embedded in Scala.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 39.7%
  • Scala 34.2%
  • TeX 12.3%
  • Java 7.3%
  • Shell 6.5%