chk_time_regex <- function(x, x_name = NULL) {
if (vld_time_regex(x)) {
return(invisible())
}
if (is.null(x_name)) x_name <- deparse_backtick_chk(substitute(x))
abort_chk(x_name, " must be a time regular expression.")
}
chk_interval_regex <- function(x, x_name = NULL) {
if (vld_interval_regex(x)) {
return(invisible())
}
if (is.null(x_name)) x_name <- deparse_backtick_chk(substitute(x))
abort_chk(x_name, " must be an interval regular expression.")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.