26.6 Dealing with failure

safely() - designed to work with map

  • result is the original result. If there was an error, this will be NULL.

  • error is an error object. If the operation was successful, this will be NULL.

possibly() - you give it a default value to return when there is an error.

quietly() - instead of capturing errors, it captures printed output, messages, and warnings.