My app works totally fine locally. When I deploy to shinyapps.io the selectInput doesn't show up. I have checked the logs. There is no error. The "h" is printed so the app is definitely reading it. However, nothing is displayed. The app works after I switch tabs and then click randomly somewhere. I have to do this everytime an observeEvent should take care of things. This is not a problem locally. I have tried testing it on other machines and it works fine. The only problem arises when I upload to shinyapps.io. Any help would be very appreciated. Thank you.
ext <- tools::file_ext(file$datapath)
req(file)
validate(need(ext == "csv", "Please upload a csv file"))
table_inp <<- read.csv(file$datapath, header = input$header, fileEncoding="UTF-8-BOM") #fileEncoding="UTF-8-BOM"
# read.csv(file$datapath)
# })
#If type of interaction is selected
#Select type of interaction for higher order terms
shinyjs::show(output$s_order <- renderUI({
print("h")
selectInput("select_order", "Higher Order Terms", c("None", "Two-way Interaction", "Three-way Interaction", "Polynomial Interaction"), selected = "None")
}))