Question: what is trycatch in r?
Answer: tryCatch() is a general tool for handling conditions: in addition to errors, you can take different actions for warnings, messages, and interrupts. You've seen errors (made by stop() ), warnings ( warning() ) and messages ( message() ) before, but interrupts are new.