-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uncaught error in tm_missing_data
#578
Comments
@chlebowa Updated example code: data <- cdisc_data() |> within({
ADSL <- teal.modules.general::rADSL
ADRS <- teal.modules.general::rADRS
})
datanames(data) <- c("ADSL", "ADRS")
app <- init(
data = data,
modules = teal::modules(
teal.modules.general::tm_missing_data(
ggplot2_args = list(
"Combinations Hist" = teal.widgets::ggplot2_args(
labs = list(subtitle = "Plot produced by Missing Data Module", caption = NULL)
),
"Combinations Main" = teal.widgets::ggplot2_args(labs = list(title = NULL))
)
)
)
)
shinyApp(app$ui, app$server, options = list(launch.browser = TRUE)) |
I also confirmed that this issue is resolved and cannot be replicated on my end." |
Yup. |
This seems to happen more frequently now. It is not consistent, but you can reproduce this by refreshing the app again and again until the error happens eventually. App code to reproduce: devtools::load_all()
library(nestcolor)
app <- teal::init(
data = teal_data() |>
within({
ADSL <- teal.modules.general::rADSL
ADRS <- teal.modules.general::rADRS
}),
modules = teal::modules(
teal.modules.general::tm_missing_data(
ggplot2_args = list(
"Combinations Hist" = teal.widgets::ggplot2_args(
labs = list(subtitle = "Plot produced by Missing Data Module", caption = NULL)
),
"Combinations Main" = teal.widgets::ggplot2_args(labs = list(title = NULL))
)
)
)
)
shinyApp(app$ui, app$server) Error log in console: Browsing http://127.0.0.1:4890
Warning: Error in if: argument is of length zero
122: getDims
121: catch
120: value[[3L]]
119: tryCatchOne
118: tryCatchList
117: tryCatch
116: do
115: hybrid_chain
114: <reactive:plotObj>
98: drawReactive
85: renderFunc
84: output$teal-teal_modules-missing_data-module-ADRS-summary_plot-plot_main
3: runApp
2: print.shiny.appobj
1: <Anonymous> |
I also saw those rarely when testing teal.goshawk modules |
It does seem to happen more often in apps with more modules or when the load is otherwise increased. |
This is a problem that originates with |
Thank you for the update, I will test at the earliest convenience. |
tm_missing_data
BEHAVIOR
Start example app, navigate to
Grouped b y Subject
tab, deselectSelect variables
.An error appears in the console but not in the app (probably caught by validators as
teal::validate_inputs
message appears in output).APP
The text was updated successfully, but these errors were encountered: