Nothing
#' isName
#'
#' Checks if a `txt` consists of valid name(s):
#' \itemize{
#' \item A name must start with a letter and can be a combination of letters, digits, period(.) and underscore(_).
#' \item Reserved words cannot be used as a name (TRUE, FALSE, NULL, if...)
#' }
#' @param txt character: name(s) to check
#'
#' @return a logical vector
#' @export
#'
#' @examples
#' isName("?plot")
#' isName(".default")
isName<- function(txt) {
reserved_words <- c("if", "else", "repeat", "while", "function", "for", "in", "next", "break", "TRUE", "FALSE",
"NULL", "Inf", "NaN", "NA", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_")
grepl("^[a-zA-Z][a-zA-Z0-9._]*$", txt) && !(txt %in% reserved_words)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.