Skip to content

Commit

Permalink
- display error notifications for longer
Browse files Browse the repository at this point in the history
- add clusterCrit as dependency
  • Loading branch information
thomas-enzlein committed Jun 7, 2024
1 parent af2e1f4 commit 9288971
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions functions/infoStateMassageHandler.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,42 +33,42 @@ infoStateMassageHandler <- function(info_state, output) {
output$info2 <- renderText(appData$selected_dir)
output$info3 <- renderText("Could not be processed. Wrong lock-mass?")
msg <- paste0("'", basename(appData$selected_dir), "' could not be processed. Wrong lock-mass?")
showNotification(msg, duration = 5, type = "error")
showNotification(msg, duration = 15, type = "error")
},
"fitErrorNorm" = {
output$info1 <- renderText(("Dataset:"))
output$info2 <- renderText(appData$selected_dir)
output$info3 <- renderText("Could not be processed. Wrong normalization-mass?")
msg <- paste0("'", basename(appData$selected_dir), "' could not be processed. Wrong normalization-mass?")
showNotification(msg, duration = 5, type = "error")
showNotification(msg, duration = 15, type = "error")
},
"RefMzError" = {
output$info1 <- renderText(("Dataset:"))
output$info2 <- renderText(appData$selected_dir)
output$info3 <- renderText("Could not be processed. Increase tolerance?")
msg <- paste0("'", basename(appData$selected_dir), "' could not be processed. Increase tolerance?")
showNotification(msg, duration = 5, type = "error")
showNotification(msg, duration = 15, type = "error")
},
"fitErrorOther" = {
output$info1 <- renderText(("Dataset:"))
output$info2 <- renderText(appData$selected_dir)
output$info3 <- renderText("Could not be processed. Unknown error.")
msg <- paste0("'", basename(appData$selected_dir), "' could not be processed. Unknown error")
showNotification(msg, duration = 5, type = "error")
showNotification(msg, duration = 15, type = "error")
},
"loadErrorNum" = {
output$info1 <- renderText(("Failed to load:"))
output$info2 <- renderText(appData$selected_dir)
output$info3 <- renderText("All folders need to have concentrations as names.")
msg <- paste0("Faild to load '", basename(appData$selected_dir), "'. All folders need to have concentrations as names.")
showNotification(msg, duration = 5, type = "error")
showNotification(msg, duration = 15, type = "error")
},
"loadErrorFormat" = {
output$info1 <- renderText(("Failed to load:"))
output$info2 <- renderText(appData$selected_dir)
output$info3 <- renderText("Wrong file format.")
msg <- paste0("Faild to load '", basename(appData$selected_dir), "'. Wrong file format.")
showNotification(msg, duration = 5, type = "error")
showNotification(msg, duration = 15, type = "error")
}
)

Expand Down
1 change: 1 addition & 0 deletions req.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ latrend
dtwclust
readr
clValid
clusterCrit

0 comments on commit 9288971

Please sign in to comment.