-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Description
Hi there,
I wrote a shiny web app and this app get a table from the database with an ID, but when I importing a ID does not exist in the data, it gives an error. I fixed this error with the tryCatch function. But this function does not work in Golem architecture and The whole app crashes and closes. how can I handling an error in golem?
A part of my code:
output$data <- renderDT({
tryCatch({
DT::datatable(r$data, rownames = F,
options = list(scrollX = T, fixedHeader = T,
columnDefs = list(list(className = 'dt-center', targets = '_all'))))
}, error = function(w) {
shinyalert("Error!", w$message, type = "error")
return()
})
})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels