[R] Graceful exit from fortran.

Rolf Turner rolf at math.unb.ca
Mon Oct 1 15:25:29 CEST 2001

Is there a way to exit gracefully from dynamically loaded Fortran,
(several layers down), if an error condition is detected?

I.e. suppose I'm within a subroutine called by a subroutine, ...,
called by .Fortran(); I want to give up gracefully if an error
condition is detected.

If I say something like

      if(x .gt. 42.d0) stop

then indeed everything stops, i.e. R falls over.  I'd ***like*** to
be able to print out an informative error message (which I guess
could be done --- a wee bit kludgily --- by calling, say, intpr())
and then exit gracefully, with R continuing to run.

Is this possible, or is it just too much too expect?


						Rolf Turner
						rolf at math.unb.ca
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list