Checks whether an email address conforms to the syntax rules.
compliant(addr, error = FALSE)
An email address.
Whether to create an error if not compliant.
A Boolean.
An email address may take either of the following forms:
local@domain
or
Display Name <local@domain>
.
compliant("alice@example.com")
#> [1] TRUE
compliant("alice?example.com")
#> [1] FALSE