Skip to content

Commit

Permalink
Removed unused argument hide_test_if_n_below (moved to saros.contents)
Browse files Browse the repository at this point in the history
  • Loading branch information
sda030 committed Jul 27, 2024
1 parent 4d5e5d0 commit a1337d5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
7 changes: 0 additions & 7 deletions R/refine_chapter_overview.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@
#' variables in a battery/question matrix. This argument specifies the number of dep variables
#' above which only single y bivariates should be shown. Set to 0 to always show single y bivariates.
#'
#' @param hide_test_if_n_below *Threshold n for hiding significance test*
#'
#' `scalar<integer>` // *default:* `0` (`optional`)
#'
#' If N is below this value, p-value will not be shown.
#'
#' @param hide_bi_entry_if_sig_above *p-value threshold for hiding bivariate entry*
#'
#' `scalar<double>` // *default:* `1` (`optional`)
Expand Down Expand Up @@ -217,7 +211,6 @@ refine_chapter_overview <-
single_y_bivariates_if_deps_above = 20,
always_show_bi_for_indep = NULL,
hide_bi_entry_if_sig_above = 1,
hide_test_if_n_below = 10,
hide_chunk_if_n_below = 10,
hide_variable_if_all_na = TRUE,
hide_chr_for_others = TRUE, # NOT IMPLEMENTED
Expand Down
2 changes: 0 additions & 2 deletions R/remove_from_chapter_structure_if_non_significant.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ remove_from_chapter_structure_if_non_significant <-
data,
hide_bi_entry_if_sig_above = .05,
always_show_bi_for_indep = c(),
hide_test_if_n_below = 10,
progress = TRUE,
call = rlang::caller_env()) {

check_data_frame(chapter_structure)
check_data_frame(data)
check_double(hide_bi_entry_if_sig_above, min = 0, max = 1, call = call)
check_string(always_show_bi_for_indep, null.ok = TRUE, n = NULL, call = call)
check_integerish(hide_test_if_n_below, min=0, max=Inf, call = call)

chapter_structure$.bi_test <- NA_character_
chapter_structure$.p_value <- NA_real_
Expand Down
1 change: 0 additions & 1 deletion R/validate_refine_chapter_overview_args.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ validate_refine_chapter_overview_args <- function(params) {
hide_chunk_if_n_below = list(fun = function(x) rlang::is_scalar_integerish(x) && x >= 0),
single_y_bivariates_if_indep_cats_above = list(fun = function(x) length(x)== 1 && (rlang::is_scalar_integerish(x) && x >= 0) || is.na(x)),
single_y_bivariates_if_deps_above = list(fun = function(x) length(x)== 1 && (rlang::is_scalar_integerish(x) && x >= 0) || is.na(x)),
hide_test_if_n_below = list(fun = function(x) rlang::is_integerish(x, n = 1, finite = TRUE)),
max_width_file = list(fun = function(x) rlang::is_integerish(x, n = 1, finite = TRUE) && x >= 8),
max_width_obj = list(fun = function(x) rlang::is_integerish(x, n = 1, finite = TRUE) && x >= 8),
max_width_chunk = list(fun = function(x) rlang::is_integerish(x, n = 1, finite = TRUE) && x >= 8),
Expand Down
7 changes: 0 additions & 7 deletions man/refine_chapter_overview.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a1337d5

Please sign in to comment.