#' Calls "View" on "head(x)"
#'
#' @param n vctrs::size of object in viewer
#' @export
view_sample <- function(x, n = 50) {
i <- sample(vctrs::vec_size(x), n)
View(
vctrs::vec_slice(x, i)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.