I have a Shiny App that uploads a csv file that uploads a csv file.
library(shiny)
ui <- fluidPage(
fileInput("file_input","Choose your file in csv"),
textOutput("choose")
)
server <- function(input, output) {
output$choose <- reactive({
if(is.null(input$file_input))
{
"No input given yet."
}
else
{
"Action Button Appears!"
}
})
}
shinyApp(ui = ui, server = server)
What I want to do is if the data does not meet certain criteria (it must have a column named ID) then the upload fails with error message, and if the data is correct an action button appears for processing (only appears if data is fine else is hidden.
Thx!