R-CMD-checkcodecov

Email Address Validation

Install

remotes::install_github("ropensci/[email protected]")

Address

x <- Address$new("[email protected]")
x$host$host_name
#> [1] "example.com"
x$local$local
#> [1] "user+tag"
x$valid()
#> [1] TRUE
x$fail()
#> NULL
x <- Address$new("user1")
x$valid()
#> [1] FALSE
x$fail()
#> [1] "Invalid Domain Name"

Meta