Nothing
check_sort_by <- function(x, sort_by = NULL,
call = rlang::caller_env()) {
set_options <- c(
.saros.env$summary_data_sort1,
.saros.env$summary_data_sort2
)
categories_in_data <- unique(as.character(x))
if (is.null(sort_by)) {
return()
}
if (
is.character(sort_by) &&
length(sort_by) == 1 &&
sort_by %in% set_options) {
return()
}
if (
is.character(sort_by) &&
all(sort_by %in% categories_in_data)) {
return()
}
cli::cli_abort(
c(
x = "Invalid {.arg sort_by}: {sort_by}",
i = "{.arg sort_by} must be either NULL (no sorting), a single string from the set options {.var {set_options}} or all valid categories in the data ({.var {categories_in_data}})."
),
call = call
)
}
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.