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.