try catch

PHOTO EMBED

Tue Jun 06 2023 14:13:44 GMT+0000 (Coordinated Universal Time)

Saved by @vs #r

result <- tryCatch({
  # Code that may generate an error
}, error = function(e) {
  # Code to handle the error
}, finally = {
  # Code to be executed regardless of whether an error occurred
})
content_copyCOPY