Usage
scalaInterpreter(classpath=character(0), scala.home=NULL, heap.maximum="256M", command.line.options=NULL, timeout=60, debug=FALSE, serialize=.Platform$OS.type == "windows")
scalaInfo(scala.home=NULL, verbose=FALSE)
scalaInstall()
rscalaJar(version="")
rscalaPackage(pkgname)
rscalaLoad(classpath=NULL, ...)
Arguments
classpath
A character vector whose elements are paths to JAR files or directories which specify the classpath for the Scala compiler/interpreter. If left equal to NULL
in the function rscalaLoad
, the package variable E$jars
--- which is set by an earlier call to the function rscalaPackage
--- is used. scala.home
A character vector of length one giving the path where Scala is installed. When set to NULL
(the default), the function sequentially tries to find the Scala home by: i. using the environment variable SCALA_HOME
, ii. querying the operating system search path, and iii. looking in ~/.rscala/scala-X
where X
is the recommended Scala version number (e.g. 2.11.5) for the package. If all these fail, the function offers to download and install Scala in the above mentioned path (if the current R session is interactive) or it downloads and installs Scala in a temporary directory (if the current R session is noninteractive).
heap.maximum
A character vector of length one used to specify the maximum heap size in the JVM. The default is 256M which is equivalent to invoking Scala with command line argument -J-Xmx256M. This option is ignored if command.line.options is not null.
command.line.options
A character vector whose elements are passed as command line arguments when invoking Scala. The default value is NULL
, meaning no extra arguments are provided. If you simply want to add to the classpath and/or set the maximum heap size, use the classpath and heap.maximum arguments.
timeout
A numeric vector of length one giving the number of seconds to wait for Scala to start before aborting. The default value is 60
seconds.
debug
An option meant only for developers of the package itself and not intended for users of the package.
serialize
An logical vector of length one indicating whether standard output (stdout) and standard error (stderr) should be captured and serialized back to R. For performance and a better experience, FALSE
is the default on non-Windows operating systems and the operating system will take care of displaying this output. Due to limitations of Windows, TRUE
is the default value on Windows operating systems as the output may not be displayed otherwise. If this output is not needed, FALSE
is recommended.
verbose
A logical vector of length one indicating whether information regarding the search for the Scala installation should be displayed.
version
If ""
, the package JAR files for all Scala versions are returned. Or, if "2.11.*"
where *
is a placeholder, the JAR file for that specific major version of Scala is returned.
pkgname
A character string giving the name of the package (as provided the second argument of the .onLoad
function) that wishes to depend on this package.