'dataui' also ships a standalone version of the 'JavaScript' allowing
for usage outside of a traditional htmlwidget context. The variable dataui
is added to window object. Usage of html_dependency_dataui should likely
be accompanied with html_dependency_react along with
html_dependency_reacttools for hydrate.
html_dependency_dataui()
library(htmltools) library(dataui) browsable( tagList( reactR::html_dependency_react(), reactR::html_dependency_reacttools(), html_dependency_dataui(), tags$div(id = "chart"), tags$div(id = "chart-hydrate"), tags$div(id = "chart-hydrate-fromwidget"), tags$script(HTML( sprintf( [1282 chars quoted with '"'], jsonlite::toJSON( dui_sparkline(data = 1:6, components = list(dui_sparklineseries(stroke="gray")))$x$tag, auto_unbox = TRUE, force = TRUE ) ) )) ) )