R/shiny.R

Defines functions renderGvis

Documented in renderGvis

renderGvis <- function(expr, env=parent.frame(), quoted=FALSE) {
  # Convert expr to a function
  func <- shiny::exprToFunction(expr, env, quoted)

  function() {
    chart <- func()
    paste(chart$html$chart, collapse="\n")
  }
}
kleanthisk10/google-motion-charts-with-r documentation built on May 20, 2019, 12:32 p.m.