R/knitr-methods.R

Defines functions knit_print.htmlwidget .onLoad

.onLoad <- function(...) {
  s3_register("knitr::knit_print", "htmlwidget")
  register_upgrade_message("shiny", "1.1", error = TRUE)
}

knit_print.htmlwidget <- function(x, ..., options = NULL) {
  knitr::knit_print(toHTML(x, standalone = FALSE, knitrOptions = options), options = options,  ...)
}

Try the htmlwidgets package in your browser

Any scripts or data that you put into this service are public.

htmlwidgets documentation built on Nov. 22, 2023, 5:08 p.m.