errors: Email errors in code

on_error_email_toR Documentation

Email errors in code

Description

email_on_error() will email on error. Use it with action_safely() to wrap a function using the emailer. Set the email recipient globally with on_error_email_to() and retrieve it with email_to().

Usage

on_error_email_to(recipient)

email_to()

gmail_id()

gmail_secret()

gmail_email()

email_on_error(.e, recipient = email_to(), .msg = NULL)

action_safely(.f, .msg = NULL)

Arguments

recipient

an email address.

.e

the error message

.f

a function to wrap in the email error catching function

Value

a character vector containing the error email


SERTwitter/ser documentation built on June 27, 2022, 7:37 p.m.