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.