Run this example by calling:
shiny::runGitHub("shiny-js-examples", "jcheng5", subdir="output")
linechart.R contains reusable R functions
renderLineChart that can be called from a Shiny app's
server.R (respectively) to add line charts.
This example is set up for easy reading of the code and easy running via
If instead we wanted to make this line chart component easily distributable to other Shiny users, we would set it up as a package.
linechart.R would go into the
R subdirectory. The contents of
www would be moved to
lineChartOutput would call
shiny::addResourcePath to make them available at a URL prefix like
"linechart". See shiny-incubator for one example.