Nothing
#' @export
`[.evaluated_smooth` <- function(x, i, j, drop = FALSE) {
cls <- class(x)
class(x) <- class(x)[-c(1:2)]
x <- NextMethod()
class(x) <- cls
x
}
#' @export
#' @importFrom rlang has_name
`[.smooth_samples` <- function(x, i, j, drop = FALSE) {
cls <- class(x)
seed <- attr(x, "seed")
data_names <- attr(x, "data_names")
class(x) <- class(x)[-c(1:2)]
x <- NextMethod()
class(x) <- cls
if (has_name(x, "smooth")) {
take <- unique(x[["smooth"]])
data_names <- data_names[take]
} else {
data_names <- NA
}
attr(x, "seed") <- seed
attr(x, "data_names") <- data_names
x
}
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.