#' A basic data frame
#' @export
some_data <- function() {
data.frame(
v1 = c(1,2,3,4,5),
v2 = c("a", "b", "c", "d", "e"),
stringsAsFactors = FALSE
)
}
#' Turn the table into HTML
#' @export
a_table <- function() {
htmlTable::htmlTable(some_data())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.