mod_open_dataset: mod_open_dataset_ui and mod_open_dataset_server

mod_open_datasetR Documentation

mod_open_dataset_ui and mod_open_dataset_server

Description

A shiny Module.

Usage

mod_open_dataset_ui(id)

mod_open_dataset_server(id)

Arguments

id

xxx

Examples

if (interactive()){
ui <- fluidPage(
tagList(
  mod_open_dataset_ui("qf_file"),
  textOutput('res')
)
)

server <- function(input, output, session) {
  rv <- reactiveValues(
    obj = NULL
  )
  rv$obj <- mod_open_dataset_server("qf_file")
  
  output$res <- renderText({
    rv$obj()
    paste0('Names of the datasets: ', names(rv$obj()))
  })
}

shinyApp(ui, server)
}


samWieczorek/Dapar2 documentation built on Oct. 12, 2023, 9:54 a.m.