3

Is there anyway to capture a SIGINT or SIGTERM from the shell in R so that I can try to execute some graceful exit code?

So far, I haven't found anything in my search.

Shuo
  • 483
  • 1
  • 5
  • 16
  • There is *interrupt* handler in `tryCatch`, see [this working example](https://github.com/jangorecki/logR/blob/03af286b6dfa4246c545e39e385345933f4a7b4b/R/logR.R#L44). I'm not aware of *SIGTERM* handling. – jangorecki Dec 01 '15 at 00:01

0 Answers0