inst/app-template.R

library(shiny)
`_data` <- readRDS('data.rds')

lapply(`_data`$packages, library, character.only = TRUE)
for (prefix in names(`_data`$resources)) {
  shiny::addResourcePath(prefix, `_data`$resources[[prefix]])
}

shinyApp(`_data`$ui, `_data`$server)

Try the shinytest package in your browser

Any scripts or data that you put into this service are public.

shinytest documentation built on May 29, 2024, 6:33 a.m.