|
14 | 14 | #' |
15 | 15 | #' @examples |
16 | 16 | #' sampleVarSpecInput("my_vars", label_vars = "Select faceting variable") |
17 | | -sampleVarSpecInput <- function(inputId, # nolint |
| 17 | +sampleVarSpecInput <- function(inputId, # nolint: object_name_linter. |
18 | 18 | label_vars = "Select sample variable", |
19 | 19 | label_levels_button = "Combine factor levels") { |
20 | 20 | assert_string(inputId) |
@@ -261,7 +261,7 @@ validate_n_levels <- function(x, name, n_levels) { |
261 | 261 | #' if (interactive()) { |
262 | 262 | #' my_app() |
263 | 263 | #' } |
264 | | -sampleVarSpecServer <- function(id, # nolint |
| 264 | +sampleVarSpecServer <- function(id, # nolint: object_name_linter. |
265 | 265 | experiment_name, |
266 | 266 | original_data, |
267 | 267 | transformed_data = original_data, |
@@ -366,7 +366,7 @@ sampleVarSpecServer <- function(id, # nolint |
366 | 366 |
|
367 | 367 | # Function to return the UI for a modal dialog with matrix input for combination |
368 | 368 | # assignment. |
369 | | - combModal <- function(sample_var_levels, # nolint |
| 369 | + combModal <- function(sample_var_levels, # nolint: object_name_linter. |
370 | 370 | n_max_groups, |
371 | 371 | selected_groups) { |
372 | 372 | if (is.null(selected_groups)) { |
@@ -416,9 +416,9 @@ sampleVarSpecServer <- function(id, # nolint |
416 | 416 |
|
417 | 417 | old_values <- names(assign_lists[[experiment_name]][[sample_var]]) |
418 | 418 | if (!is.null(old_values) && |
419 | | - length(old_values) == length(sample_var_levels) && # nolint |
420 | | - all(sort(old_values) == sort(sample_var_levels))) { # nolint |
421 | | - selected_groups <- assign_lists[[experiment_name]][[sample_var]] # nolint |
| 419 | + length(old_values) == length(sample_var_levels) && # nolint: indentation_linter. |
| 420 | + all(sort(old_values) == sort(sample_var_levels))) { |
| 421 | + selected_groups <- assign_lists[[experiment_name]][[sample_var]] |
422 | 422 | } |
423 | 423 |
|
424 | 424 | showModal(combModal( |
@@ -490,14 +490,14 @@ sampleVarSpecServer <- function(id, # nolint |
490 | 490 | #' experiment_name = reactive({ |
491 | 491 | #' input$experiment_name |
492 | 492 | #' }), |
493 | | -#' original_data = ori_data # nolint Please update the <ori_data> |
| 493 | +#' original_data = ori_data # Please update the <ori_data> |
494 | 494 | #' ) |
495 | 495 | #' # Then can extract the transformed data and selected variables later: |
496 | 496 | #' experiment_data <- sample_var_specs$experiment_data() |
497 | 497 | #' facet_var <- sample_var_specs$vars$facet_var() |
498 | 498 | #' color_var <- sample_var_specs$vars$color_var() |
499 | 499 | #' } |
500 | | -multiSampleVarSpecServer <- function(inputIds, # nolint |
| 500 | +multiSampleVarSpecServer <- function(inputIds, # nolint: object_name_linter. |
501 | 501 | original_data, |
502 | 502 | ...) { |
503 | 503 | assert_character(inputIds, any.missing = FALSE, unique = TRUE) |
|
0 commit comments