is_valid_username | R Documentation |
By using regular expressions, this function checks if a username is a valid email address.
is_valid_username(username = NULL)
username |
The username to be checked. |
TRUE if the username is valid, otherwise an error is thrown.
is_valid_username("john.doe@example.com")
## Not run:
is_valid_username("invalid_username")
is_valid_username("")
is_valid_username(NULL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.