An interface to an R interpreter.
A class used to wrap an arbitrary R object.
A class used to wrap an arbitrary R object.
val R = org.ddahl.rscala.callback.RClient() R.a = Array(1,2,3,4,5) val ref = R.evalR("as.list(a)") R.evalD0(s"sum(unlist(${ref}))")
The companion object to the RClient class used to create an instance of the RClient class in a JVM-based application.
The companion object to the RClient class used to create an instance of the RClient class in a JVM-based application.
An object R
is an RClient instance available in a Scala interpreter created by calling the function
scalaInterpreter
from the package rscala. It is through this instance
R
that callbacks to the original R interpreter are possible.
The paths of the rscala's JARs, for both Scala 2.10 and 2.11, are available from R using
rscala::rscalaJar()
. To get just the JAR for Scala 2.11, for example, use rscala::rscalaJar("2.11")
.
val R = org.ddahl.rscala.callback.RClient()
An interface to an R interpreter.
An object
R
is the instance of this class available in a Scala interpreter created by calling the functionscalaInterpreter
from the package rscala. It is through this instanceR
that callbacks to the original R interpreter are possible.In a JVM-based application, an instance of this class is created using its companion object. See below. The paths of the rscala's JARs, for both Scala 2.10 and 2.11, are available from R using
rscala::rscalaJar()
. To get just the JAR for Scala 2.11, for example, userscala::rscalaJar("2.11")
.