[R] rJava: System.exit(1) in Java causes R crash

Sigal Blay sblay at sfu.ca
Wed Aug 18 06:18:40 CEST 2010


I'm writing a package that successfully calls Java from R using rJava.
When R sends my Java function bad data (through .jcall()), 
I get the error message details (when I run it on a console)
and then:

Java requested System.exit(1), closing R.

Is there a way to call .jcall so that when Java receives bad data,
the Java function will exit, but won't take down R with it?

Thanks,
Sigal



More information about the R-help mailing list