Learn R Programming

rscala (version 3.2.6)

scalaMemory: Get or Set Memory Available to Scala

Description

Depending on the argument type, this function has several uses related to memory in Scala.

Usage

scalaMemory(x)

Arguments

x

If the argument is a string (e.g., "8G" or "512M"), the function sets the default maximum heap size for new instances of rscala bridges created by the function scala. If the argument is missing, the current default maximum heap size for new instances is returned. Set the argument to NULL to disable this global option, and therefore use Scala's own default. If the argument is an rscala bridge, the function returns a numeric vector giving the current and the maximum heap sizes.

See Also

scala

Examples

Run this code
# NOT RUN {
scalaMemory("1G")
# }

Run the code above in your browser using DataLab