1111 \code {.jvmState() returns the state of the current JVM. }
1212}
1313\usage {
14- .jinit(classpath = NULL , parameters = getOption(" java.parameters" ), ... ,
15- silent = FALSE , force.init = FALSE )
14+ .jinit(classpath = NULL , parameters = getOption(" java.parameters" , NA ), ... ,
15+ silent = FALSE , force.init = FALSE )
1616.jvmState()
1717}
1818\arguments {
@@ -25,7 +25,10 @@ silent = FALSE, force.init = FALSE)
2525 the virtual machine. They are implementation dependent and apply
2626 to JDK version 1.2 or higher only. Please note that each parameter
2727 must be in a separate element of the array , you cannot use a
28- space - separated string with multiple parameters. }
28+ space - separated string with multiple parameters. The value of
29+ \code {NA } means " use rJava default" which is \code {" -Xmx1g" }
30+ currently. \code {NULL } is equivalent to \code {character ()}.
31+ }
2932 \item {... }{Other optional Java initialization parameters (implementation - dependent ). }
3033 \item {silent }{If set to \code {TRUE } no warnings are issued. }
3134 \item {force.init }{If set to \code {TRUE } JVM is re - initialized even if
@@ -89,15 +92,17 @@ silent = FALSE, force.init = FALSE)
8992 rare and problematic in either case. Behavior of rJava functions other
9093 than \c ode{.jinit} and \c ode{.jvmState} is undefined unless
9194 \c ode{.jvmState()$initialized} is \c ode{TRUE}.
95+
96+ NOTE: \c ode{.jinit()} can be called implicitly by other functions such
97+ as \c ode{\l ink{.jpackage}} or \c ode{\l ink{J}}.
9298}
9399\s eealso{
94100 \c ode{\l ink{.jpackage}}
95101}
96102\e xamples{
97103\d ontrun{
98- ## set heap size limit to 512MB (see java -X) and
99- ## use "myClasses.jar" as the class path
100- .jinit(classpath="myClasses.jar", parameters="-Xmx512m")
104+ ## set heap size limit to 512MB (see java -X)
105+ .jinit(parameters="-Xmx512m")
101106.jvmState()
102107}
103108}
0 commit comments