new version

This commit is contained in:
Andreas Gammelgaard Damsbo 2026-02-23 16:17:00 +01:00
commit e55c58bc89
No known key found for this signature in database
13 changed files with 56 additions and 45 deletions

View file

@ -1,7 +1,7 @@
########
#### Current file: /var/folders/9l/xbc19wxx0g79jdd2sf_0v291mhwh7f/T//RtmpvRkTPP/file5ce319d75524.R
#### Current file: /var/folders/9l/xbc19wxx0g79jdd2sf_0v291mhwh7f/T//Rtmpp0JgLn/file73e1e257b26.R
########
i18n_path <- system.file("translations", package = "FreesearchR")
@ -6050,7 +6050,7 @@ data_missings_ui <- function(id, ...) {
label = i18n$t("Evaluate"),
width = "100%",
icon = shiny::icon("calculator"),
disabled = FALSE
disabled = TRUE
)
),
do.call(bslib::accordion_panel, c(
@ -6100,19 +6100,25 @@ data_missings_server <- function(id, data, max_level = 20, ...) {
)
output$missings <- shiny::reactive({
shiny::req(data())
any(is.na(data()))
# shiny::req(data())
any(is.na(datar()))
})
shiny::outputOptions(output, "missings", suspendWhenHidden = FALSE)
observe({
shiny::req(data())
if (!any(is.na(data()))) {
rv$feedback <- info_alert
} else {
rv$feedback <- NULL
}
})
shiny::observeEvent(list(datar(), input$missings_method, input$missings_var),
{
# shiny::req(data())
# browser()
if (!any(is.na(datar()))) {
rv$feedback <- info_alert
shiny::updateActionButton(inputId = "act_miss", disabled = TRUE)
rv$table <- NULL
output$missings_table <- gt::render_gt({ NULL })
} else {
rv$feedback <- NULL
shiny::updateActionButton(inputId = "act_miss", disabled = FALSE)
}
},ignoreInit = TRUE)
output$feedback <- renderUI(rv$feedback)
@ -6123,7 +6129,7 @@ data_missings_server <- function(id, data, max_level = 20, ...) {
## Direct table export would be nice
shiny::observe(output$missings_method <- shiny::renderUI({
shiny::req(data())
shiny::req(datar())
vectorSelectInput(
inputId = ns("missings_method"),
label = i18n$t("Analysis method for missingness overview"),
@ -6143,7 +6149,7 @@ data_missings_server <- function(id, data, max_level = 20, ...) {
# browser()
if (input$missings_method == "predictors") {
label <- i18n$t("Select a variable for grouped overview")
df <- data_type_filter(data(), type = c("categorical", "dichotomous"))
df <- data_type_filter(datar(), type = c("categorical", "dichotomous"))
col_subset <- c("none", names(df))
} else {
label <- i18n$t("Select outcome variable for overview")

View file

@ -316,7 +316,6 @@
"Reorder factor levels","Omarranger niveauer"
"Modify factor levels","Modify factor levels"
"Reorder or rename the levels of factor/categorical variables.","Reorder or rename the levels of factor/categorical variables."
"Start by loading data.","Start by loading data."
"Maximum number of observations:","Maximum number of observations:"
"setting to 0 includes all","setting to 0 includes all"
"Select a dataset from your environment or sample dataset from a package.","Select a dataset from your environment or sample dataset from a package."
@ -327,3 +326,4 @@
"Click to see data","Click to see data"
"No data present.","No data present."
"You have provided a complete dataset with no missing values.","You have provided a complete dataset with no missing values."
"Start by loading data.","Start by loading data."

1 en da
316 Reorder factor levels Omarranger niveauer
317 Modify factor levels Modify factor levels
318 Reorder or rename the levels of factor/categorical variables. Reorder or rename the levels of factor/categorical variables.
Start by loading data. Start by loading data.
319 Maximum number of observations: Maximum number of observations:
320 setting to 0 includes all setting to 0 includes all
321 Select a dataset from your environment or sample dataset from a package. Select a dataset from your environment or sample dataset from a package.
326 Click to see data Click to see data
327 No data present. No data present.
328 You have provided a complete dataset with no missing values. You have provided a complete dataset with no missing values.
329 Start by loading data. Start by loading data.

View file

@ -316,7 +316,6 @@
"Reorder factor levels","Reorder factor levels"
"Modify factor levels","Modify factor levels"
"Reorder or rename the levels of factor/categorical variables.","Reorder or rename the levels of factor/categorical variables."
"Start by loading data.","Start by loading data."
"Maximum number of observations:","Maximum number of observations:"
"setting to 0 includes all","setting to 0 includes all"
"Select a dataset from your environment or sample dataset from a package.","Select a dataset from your environment or sample dataset from a package."
@ -327,3 +326,4 @@
"Click to see data","Click to see data"
"No data present.","No data present."
"You have provided a complete dataset with no missing values.","You have provided a complete dataset with no missing values."
"Start by loading data.","Start by loading data."

1 en sw
316 Reorder factor levels Reorder factor levels
317 Modify factor levels Modify factor levels
318 Reorder or rename the levels of factor/categorical variables. Reorder or rename the levels of factor/categorical variables.
Start by loading data. Start by loading data.
319 Maximum number of observations: Maximum number of observations:
320 setting to 0 includes all setting to 0 includes all
321 Select a dataset from your environment or sample dataset from a package. Select a dataset from your environment or sample dataset from a package.
326 Click to see data Click to see data
327 No data present. No data present.
328 You have provided a complete dataset with no missing values. You have provided a complete dataset with no missing values.
329 Start by loading data. Start by loading data.