shinyApp(
fluidPage(
title = "CSV Import Sample App",
wellPanel(
ModuleImportUI("ProjectDataFile")
),
h3("Example App Preview"),
tableOutput("AppOutputTest")
),
function(input,output,session){
DataFile <- ModuleImportServer("ProjectDataFile",
UILang = "en",
Expected = list(
Header = TRUE,
ColSep = ";",
ThousandsSep = ".",
DecimalsSep = ",",
DateFormat = "%d.%m.%Y", # strptime() default
TimeFormat = "%k:%M", # strptime() default
Quote = "",
StringsAsFactors = FALSE
)
)
output$AppOutputTest <- renderTable({
need(DataFile(), "No data available")
return(DataFile())
})
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.