This function installs Scala and/or Java in the user's ~/.rscala
directory.
scalaConfig(
verbose = TRUE,
reconfig = FALSE,
download = character(0),
require.sbt = FALSE
)
Returns a list of details of the Scala and Java binaries.
Should details of the search for Scala and Java be provided? Or, if a Scala bridge is provided instead of a logical, the function returns a list of details associated with the supplied bridge.
If TRUE
, the script ~/.rscala/config.R
is
rewritten based on a new search for Scala and Java. If FALSE
, the
previous configuration is sourced from the script
~/.rscala/config.R
. If "live"
, a new search is performed,
but the results do not overwrite the previous configuration script.
"offline"
is the same as "live"
, except no software is ever
downloaded.
Finally, the value set here is superceded by the value of the environment
variable RSCALA_RECONFIG
, if it exists.
A character vector which may be length-zero or whose elements
are any combination of "java"
, "scala"
, or "sbt"
. Or,
TRUE
denotes all three. The indicated software will be installed in
"~/.rscala".
Should SBT be required, downloading and installing it in '~/.rscala/sbt' if necessary?
David B. Dahl (2019). "Integration of R and Scala Using rscala." Journal of Statistical Software, 92:4, 1-18. https://www.jstatsoft.org
# \donttest{
scalaConfig()
# }
Run the code above in your browser using DataLab