Dear All, I'm using "reg.finalizer" in a function that is to be called in R scripts to do some cleanup on success. I have not found a way to run the function only if the script run without errors, so when the exit code is expected to be 0.
What I've tried is checking "geterrmessage()", but unfortunately it's not perfect: if an error was handled with eg "tryCatch" previously, that message still shows up there. Is there any better way of figuring out in "reg.finalizer" or ".Last" if the session run OK or exiting with !0 exit code? Thanks, Gergely [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel