Skip to content

Commit b293a0b

Browse files
committed
lintr
1 parent b8fae5a commit b293a0b

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

R/mod_boxplot.R

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ boxplot_UI <- function(id) { # nolint
115115

116116
group_menu <- drop_menu_helper(
117117
ns(BP$ID$GRP_BUTTON), BP$MSG$LABEL$GRP_BUTTON,
118-
# col_menu_UI(id = ns(BP$ID$MAIN_GRP)),
119118
col_menu_UI(id = ns(BP$ID$SUB_GRP)),
120119
col_menu_UI(id = ns(BP$ID$PAGE_GRP))
121120
)
@@ -393,15 +392,6 @@ boxplot_server <- function(id,
393392
# input
394393

395394
inputs <- list()
396-
# inputs[[BP$ID$MAIN_GRP]] <- col_menu_server(
397-
# id = BP$ID$MAIN_GRP,
398-
# data = v_group_dataset,
399-
# label = "Select a grouping variable",
400-
# include_func = function(x) {
401-
# is.factor(x) || is.character(x)
402-
# },
403-
# default = default_main_group
404-
# )
405395
inputs[[BP$ID$SUB_GRP]] <- col_menu_server(
406396
id = BP$ID$SUB_GRP,
407397
data = v_group_dataset,
@@ -534,13 +524,6 @@ boxplot_server <- function(id,
534524
param_iv$enable()
535525

536526
group_iv <- shinyvalidate::InputValidator$new()
537-
# group_iv$add_rule(
538-
# get_id(inputs[[BP$ID$MAIN_GRP]]),
539-
# sv_not_empty(
540-
# inputs[[BP$ID$MAIN_GRP]],
541-
# msg = BP$MSG$VALIDATE$NO_MAIN_GROUP_SEL
542-
# )
543-
# )
544527
group_iv$add_rule(
545528
get_id(inputs[[BP$ID$SUB_GRP]]),
546529
sv_not_empty(
@@ -589,7 +572,6 @@ boxplot_server <- function(id,
589572
)
590573

591574
subset_inputs <- c(BP$ID$PAR, BP$ID$PAR_VISIT, BP$ID$X_VAR, BP$ID$PAR_VALUE,
592-
# BP$ID$MAIN_GRP,
593575
BP$ID$SUB_GRP, BP$ID$PAGE_GRP)
594576
if (!is.null(inputs[[BP$ID$ANLFL_FILTER]])) {
595577
subset_inputs <- c(subset_inputs, BP$ID$ANLFL_FILTER)
@@ -623,10 +605,8 @@ boxplot_server <- function(id,
623605
l_inputs <- v_input_subset()
624606
group_vect <- drop_nones(
625607
stats::setNames(
626-
c(# l_inputs[[BP$ID$MAIN_GRP]],
627-
l_inputs[[BP$ID$SUB_GRP]], l_inputs[[BP$ID$PAGE_GRP]]),
628-
c(# CNT$MAIN_GROUP,
629-
CNT$SUB_GROUP, CNT$PAGE_GROUP)
608+
c(l_inputs[[BP$ID$SUB_GRP]], l_inputs[[BP$ID$PAGE_GRP]]),
609+
c(CNT$SUB_GROUP, CNT$PAGE_GROUP)
630610
)
631611
)
632612

@@ -787,7 +767,6 @@ boxplot_server <- function(id,
787767
)
788768

789769
shiny::observeEvent(loaded_state(), {
790-
# get_update(inputs[[BP$ID$MAIN_GRP]])[["val"]](selected = loaded_state()[[BP$ID$MAIN_GRP]])
791770
get_update(inputs[[BP$ID$SUB_GRP]])[["val"]](selected = loaded_state()[[BP$ID$SUB_GRP]])
792771
get_update(inputs[[BP$ID$PAGE_GRP]])[["val"]](selected = loaded_state()[[BP$ID$PAGE_GRP]])
793772
get_update(inputs[[BP$ID$PAR]])[["val"]](

0 commit comments

Comments
 (0)