#' Check if an object is a single string
#'
#' @param x the object to check.
#' @return TRUE iff x is of type character and of length 1.
#' @author Yuriy Sverchkov
isSingleString <- function( x ) is.character( x ) && length( x ) == 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.