R/print.R

Defines functions print.dash_component

Documented in print.dash_component

#' Output a dash component object as JSON 
#'
#' Objects of the `dash_component` class support a `print` method,
#' which first processes the nested list object, and then returns
#' its JSON representation.
#'
#' @param x an object of class dash_component
#' @param ... not currently used
#' @export

print.dash_component <- function(x, ...) {
  print(to_JSON(x, pretty = TRUE))
  x
}

Try the dash package in your browser

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

dash documentation built on June 23, 2022, 9:11 a.m.