connects with progres

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-05-05 14:44:18 +02:00
parent 1204487836
commit 0a0d69312a
No known key found for this signature in database

View file

@ -200,7 +200,9 @@ m_redcap_readServer <- function(id) {
)
# browser()
shiny::withProgress({
imported <- try(rlang::exec(REDCapR::redcap_metadata_read, !!!parameters), silent = TRUE)
},message = paste("Connecting to",data_rv$uri))
## TODO: Simplify error messages
if (inherits(imported, "try-error") || NROW(imported) < 1 || ifelse(is.list(imported), !isTRUE(imported$success), FALSE)) {
@ -227,8 +229,10 @@ m_redcap_readServer <- function(id) {
include_data_alert(
see_data_text = "Click to see data dictionary",
dataIdName = "see_data",
extra = tags$p(tags$b(phosphoricons::ph("check", weight = "bold"), "Connected to server!"),
glue::glue("The {data_rv$info$project_title} project is loaded.")),
extra = tags$p(
tags$b(phosphoricons::ph("check", weight = "bold"), "Connected to server!"),
glue::glue("The {data_rv$info$project_title} project is loaded.")
),
btn_show_data = TRUE
)
)