Learn R Programming

rscala (version 3.2.6)

scalaConfig: Configure Scala and Java

Description

This function installs Scala and/or Java in the user's ~/.rscala directory.

Usage

scalaConfig(verbose = TRUE, reconfig = FALSE,
  download = character(0), require.sbt = FALSE)

Arguments

verbose

Should details of the search for Scala and Java be provided? Or, if an rscala bridge is provided instead of a logical, the function returns a list of details associated with the supplied bridge.

reconfig

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. Finally, the value set here is superceded by the value of the environment variable RSCALA_RECONFIG, if it exists.

download

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 at "~/.rscala".

require.sbt

Should SBT be required, downloading and installing it in '~/.rscala/sbt' if necessary?

Value

Returns a list of details of the Scala and Java binaries.

References

David B. Dahl (2018). <U+201C>Integration of R and Scala Using rscala.<U+201D> Journal of Statistical Software, in editing. https://www.jstatsoft.org

Examples

Run this code
# NOT RUN {
scalaConfig()
# }

Run the code above in your browser using DataLab