Skip to contents

Validate email address

Usage

validate(addr, deliverability = TRUE)

Arguments

addr

An email address.

deliverability

Whether to check for deliverability (valid domain).

Value

A logical indicating whether or not the address is valid.

Examples

# A valid address.
validate("cran-sysadmin@r-project.org")
#> [1] TRUE
# An invalid address.
validate("help@this-domain-does-not-exist.com")
#> [1] FALSE