#' @import htmltools
NULL
#' Juicystable
#'
#' Juicystable
#' @examples
#' juicyTable( head(iris) )
#' @export
juicyTable <- function(data){
  data <- oddsandsods::prettyNames(data)
  thead_elem <-
    lapply( colnames(data) , function(colname)
      withTags( th( colname ) )
    )
  tbody_elem <-
    apply(data, 1, function(row)
      withTags(
        tr(
          lapply( row , td )
        )
      )
    )
  as.character(
    withTags(
      table(class="simple",
            thead( tr( thead_elem) ),
            tbody(tbody_elem)
      )
    )
  )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.