scalaConfig: Configure Scala and Java

View source: R/scalaConfig.R

scalaConfigR Documentation

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 a Scala 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. "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.

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 in "~/.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 (2019). "Integration of R and Scala Using rscala." Journal of Statistical Software, 92:4, 1-18. https://www.jstatsoft.org

Examples


scalaConfig()



rscala documentation built on Aug. 15, 2023, 9:07 a.m.