scalaMemory: Get or Set Memory Available to Scala

View source: R/scalaMemory.R

scalaMemoryR Documentation

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 Scala 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 rscala's default. If the argument is a Scala bridge, the function returns a numeric vector giving the current heap size and the maximum heap size, in megabytes.

See Also

scala

Examples

## Not run: 
scalaMemory("1G")

## End(Not run)


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