Instantly share code, notes, and snippets.

View .block
license: mit
View .block
license: mit
View .block
license: mit
View Readme.md

supplement to Stack Overflow

Code

library(dygraphs)
library(scales)

lungDeaths <- xts::as.xts(cbind(mdeaths, fdeaths))
View .block
license: mit
View .block
license: mit
View .block
license: mit
View Readme.md

Let's say you have streaming data, and you would like to update a DT::datatable in Shiny without completely re-rendering the table. Here is some code to illustrate how this might be accomplished. Hope it helps.

library(DT)
library(shiny)

ui <- tagList(
  tags$script(HTML(
"
Shiny.addCustomMessageHandler(
View .block
license: mit
View .block
license: mit