Usage with Shiny
#Using sketch code in Shiny
www folder of the shiny App, then include the script tag
tags$script(src = ...) in the shiny UI.
#A full example
Here is an example of a Shiny App with and without sketch code.
dom.js is provided by the sketch package, and the file path can be found using
src("dom"). Suppose you are at the Shiny App directory, in which there is an
www folder, then
dom.js can be generated by running
file.copy(src("dom"), output = "./www/dom.js").
slider.js using the following command:
plot.js using the following command: