Learn R Programming

rscala (version 3.1.0)

scalaHeapMaximum: Globally Set Scala's Maximum Heap Size

Description

This function sets the maximum heap size for new instances of rscala bridges created by the function scala. The value set here overrides the argument of the same name of the function scala. Set the argument to NULL to disable this global option. The function is helpful for users of packages that depend on rscala.

Usage

scalaHeapMaximum(heap.maximum = NULL)

Arguments

heap.maximum

String indicating the JVM heap maximum, e.g., "8G". Without this being set in either scala or scalaHeapMaximum, the heap maximum will be 85% of the physical RAM. The value from scalaHeapMaximum supersedes that from scala.

Value

Returns NULL, invisibly.

See Also

scala

Examples

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

Run the code above in your browser using DataLab