tests/testthat/module_examples/loadCharts/app.R

library(shiny)
library(safetyGraphics)
library(shinyjs)
# reactlogReset()
# devtools::load_all()
ui <- tagList(
  useShinyjs(),
  fluidPage(
    h1("App Loader Demo"),
    loadChartsUI("load-charts"),
    textOutput("ex1Out")
  )
)

server <- function(input,output,session){
  charts<-callModule(loadCharts, "ex1") #charts reactive
  output$ex1Out<-renderPrint(ex1_data())
}

# options(shiny.reactlog = TRUE)
# devtools::load_all()
shinyApp(ui, server)

Try the safetyGraphics package in your browser

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

safetyGraphics documentation built on Dec. 28, 2022, 1:58 a.m.