Checks whether an email address conforms to the syntax rules.
Usage
compliant(addr, error = FALSE)
Arguments
- addr
An email address.
- error
Whether to create an error if not compliant.
Details
An email address may take either of the following forms:
Examples
compliant("alice@example.com")
#> [1] TRUE
compliant("alice?example.com")
#> [1] FALSE