#' Error handling - scalar
#' @noRd
is.scalar <- function(x){
result <- (is.numeric(x) && length(x) == 1 && is.finite(x))
return(result)
}
#' non-vectorized ifelse function
#' @noRd
ifelse1 <-
function (test, x, y) if (test) x else y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.