Update R/shinymod snippet (#469)

* feat: update R shinymod snippet

The previously used module syntax has been deprecated for quite some time
This commit is contained in:
Jacob Scott 2024-07-15 01:33:58 +01:00 committed by GitHub
parent 45a1b96e46
commit e1f7015bae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"
]
}