For rscala developers only: Returns an instance of the RClient class.
Returns an instance of the RClient class, using the path specified by rCmd
and specifying whether output
should be serialized, whether matrices are row major, whether debugging output should be displayed, the timeout
to establish a connection
with the R interpreter, and the port number.
Returns an instance of the RClient class, using the path specified by rCmd
and specifying whether output
should be serialized, whether matrices are row major, whether debugging output should be displayed, the timeout
to establish a connection
with the R interpreter, and the port number. Two sockets are establised using: 1. the specified port and 2. the specified port plus one.
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 functionscala
from the package rscala. It is through this instanceR
that callbacks to the original R interpreter are possible.The paths of the rscala's JARs are available from R using
rscala::.rscalaJar()
. To get just the JAR for Scala 2.12, for example, userscala::.rscalaJar("2.12")
.val R = org.ddahl.rscala.RClient()