Skip to content

Instantly share code, notes, and snippets.

@ColinFay
Created June 5, 2018 12:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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