Checks if the currently initialized rJava session matches the required Java version.
Intended for use in the .onLoad function of packages that depend on rJava.
Arguments
- version
Integer. The required major Java version (e.g., 21).
- type
Character. "min" (default) checks for
>= version. "exact" checks for== version.- action
Character. What to do if incompatible:
"warn": Issue a warning but continue.
"stop": Throw an error (prevent package loading).
"message": Print a startup message.
"none": Return
FALSEinvisibly (useful for custom handling).
