R + Shiny + d3js: Blank template.
script.js belongs in 'www' directory.
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script> | |
d3.select('.span8').append('p').text('Hello World!') | |
</script> |
shinyServer(function(input,output) { | |
}) |
library(shiny) | |
shinyUI(pageWithSidebar( | |
headerPanel("Application Title"), | |
sidebarPanel(), | |
mainPanel( | |
includeHTML('www/script.js') | |
) | |
)) |