Description Usage Arguments Details Value Regex
qc_email_check
function checks for correctness in the email fields
1 | qc_email_check(data, parent_logger = "test")
|
data |
Data frame containing the site metadata where email variables are located. |
Provided email direction/s (contact and additional contributor, if any) are checked to ensure that are valid email directions. This function uses stringr package utilities for character string tinkering and regex to match the characteristics of email directions
A data frame with the directions and the result of the check
Email directions can be divided in three components, username
,
@
and domain
. username
component can contain
any letter, number, underscores, dots and hyphens. domain
component
can be also any letter, number, underscores dots and hyphens, followed by
a dot and from two to six letters and/or dots. So, the regex expression
to match a email direction is as follows:
"^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.