Skip to content

Instantly share code, notes, and snippets.

@ColinFay
Created June 5, 2018 12:40
Show Gist options
  • Save ColinFay/8cc1e8f8f0cab83a69e24ce21e141a5e to your computer and use it in GitHub Desktop.
Save ColinFay/8cc1e8f8f0cab83a69e24ce21e141a5e to your computer and use it in GitHub Desktop.
snippet module
${1:name}UI <- function(id){
ns <- NS(id)
tagList(
)
}
${1:name} <- function(input, output, session){
}
library(shiny)
ui <- fluidPage(
${1:name}UI("test")
)
server <- function(input, output, session){
callModule(${1:name}, "test")
}
shinyApp(ui, server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment