# Create a new S3 class from a list
new_s3_lst <- function(x, ..., class) {
stopifnot(is.list(x))
stopifnot(is.character(class))
structure(x, ..., class = class)
}
# Create a new S3 class from a scalar
new_s3_scalar <- function(..., class) {
new_s3_lst(list(...), class = class)
}
#' @importFrom generics tidy
#' @export
generics::tidy
#' @importFrom generics glance
#' @export
generics::glance
#' @importFrom generics augment
#' @export
generics::augment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.