Email: Email

EmailR Documentation

Email

Description

A validated email field. Validation occurs during both serialization and deserialization

Super classes

staypuft::FieldABC -> staypuft::Field -> Email

Methods

Public methods

Inherited methods

Method new()

Create a new Email object

Usage
Email$new(...)

Method validate_email()

Usage
Email$validate_email()

Method clone()

The objects of this class are cloneable with this method.

Usage
Email$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

z <- Schema$new("email", email = fields$email())
z
z$load(list(email = "blueberries@yahoo.com")) # good
if (interactive()) z$load(list(email = 'foobar')) # bad

ropensci/staypuft documentation built on Sept. 9, 2022, 4:35 p.m.