Usage
scalaInterpreter(classpath=character(0),
scala.home=NULL, java.home=NULL, java.heap.maximum="256M", java.opts=NULL,
timeout=60, debug.filename=NULL)
javaCmd(java.home=NULL, verbose=FALSE)
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 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 th
java.home
A character vector of length one giving the path where Java is installed. When set to NULL
(the default), the function sequentially tries to find the Java home by: i. using the environment variable JAVACMD
, ii. using the enviro
java.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 Java with command line argument -Xmx256M. This option is ignored if java.opts
java.opts
A character vector whose elements are passed as command line arguments when invoking the JVM. The default value is NULL
, meaning no extra arguments are provided.
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.filename
An option meant only for developers of the package itself and not intended for users of the package.
verbose
A logical vector of length one indicating whether information regarding the search for Scala and Java installation should be displayed.
version
If ""
, the package JAR files for all Scala versions are returned. Or, if "2.10.*"
or "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.