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. 15, 2023, 1:45 p.m.