Skip to content

Instantly share code, notes, and snippets.

@dtenenba
Last active January 2, 2016 13:49
Show Gist options
  • Save dtenenba/8312476 to your computer and use it in GitHub Desktop.
Save dtenenba/8312476 to your computer and use it in GitHub Desktop.
library(shiny)
addResourcePath("js", "/tmp/shinydemo")
runApp(list(
ui = basicPage(
tagList(singleton(
tags$head(
tags$script(src="js/shiny2.js"),
tags$script(src="js/demo.js")
)
)),
h2('The mtcars data'),
dataTableOutput('mytable')
),
server = function(input, output) {
output$mytable = renderDataTable({
mtcars
},
options=list(bRetrieve=TRUE)
)
}
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment