diff --git a/snippets/r.json b/snippets/r.json index e899e3e8..1a0abe6c 100644 --- a/snippets/r.json +++ b/snippets/r.json @@ -118,15 +118,17 @@ "shinymod": { "prefix": "shinymod", "body": [ - "${1:name}_UI <- function(id) {", + "${1:name}UI <- function(id) {", " ns <- NS(id)", " tagList(", - " ${0}", + " ${2}", " )", "}", "", - "${1:name} <- function(input, output, session) {", - " ", + "${1:name}Server <- function(id) {", + " moduleServer(id, function(input, output, session) {", + " ${3}", + " })", "}\n" ] }