Nothing
is_sorted <- function(x, ...) {
UseMethod("is_sorted", x)
}
assertthat::on_failure(is_sorted) <- function(call, env) {
paste0(deparse(call$x), " is not sorted.")
}
#' @export
is_sorted.numeric <- function(x, ...) {
all(diff(x) >= 0)
}
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.