Checks whether an email address conforms to the syntax rules.

compliant(addr, error = FALSE)

Arguments

addr

An email address.

error

Whether to create an error if not compliant.

Value

A Boolean.

Details

An email address may take either of the following forms:

  • local@domain or

  • Display Name <local@domain>.

Examples

compliant("alice@example.com")
#> [1] TRUE
compliant("alice?example.com")
#> [1] FALSE