compliant: Tests whether an email address is syntactically correct

View source: R/address.R

compliantR Documentation

Tests whether an email address is syntactically correct

Description

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:

  • local@domain or

  • ⁠Display Name <local@domain>⁠.

Value

A Boolean.

Examples

compliant("alice@example.com")
compliant("alice?example.com")

emayili documentation built on June 24, 2024, 5:12 p.m.