Skip to content

Commit

Permalink
fix: ci fixes - lints and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Nov 24, 2023
1 parent 3105ef9 commit 1dd6c0f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .lintr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
linters: linters_with_defaults(
line_length_linter = line_length_linter(120),
cyclocomp_linter = NULL,
object_usage_linter = NULL
)
line_length_linter = line_length_linter(120),
cyclocomp_linter = NULL,
object_usage_linter = NULL
)
2 changes: 1 addition & 1 deletion R/tm_g_gh_correlationplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ srv_g_correlationplot <- function(id,

# get min max values
if ((constraint_var == "BASE2" && any(grepl("SCR", visit_freq))) ||
(constraint_var == "BASE" && any(grepl("BL", visit_freq)))) {
(constraint_var == "BASE" && any(grepl("BL", visit_freq)))) { # nolint
val <- stats::na.omit(switch(constraint_var,
"BASE" = ANL$BASE[ANL$AVISITCD == "BL"],
"BASE2" = ANL$BASE2[ANL$AVISITCD == "SCR"],
Expand Down
2 changes: 1 addition & 1 deletion R/utils-data_constraints.r
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ constr_anl_q <- function(session, input, data, dataname, param_id, param_var, tr

# get min max values
if ((constraint_var == "BASE2" && any(grepl("SCR", visit_freq))) ||
(constraint_var == "BASE" && any(grepl("BL", visit_freq)))) {
(constraint_var == "BASE" && any(grepl("BL", visit_freq)))) { # nolint
val <- stats::na.omit(switch(constraint_var,
"BASE" = ANL$BASE[ANL$AVISITCD == "BL"],
"BASE2" = ANL$BASE2[ANL$AVISITCD == "SCR"],
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ plots_per_row_validate_rules <- function(required = TRUE) {
#' an optional description, and the option to append the filter state list.
#' Additionally, it display selected constraint options.
#'
#' @inheritParams teal.reporter::card_template
#' @inheritParams teal::report_card_template
#' @param constraint_list (`list`) a list containing constraint variables, including:
#' - constraint_var (`character(1)`) the constraint variable name.
#' - constraint_range_min (`numeric(1)`) the minimum constraint range value.
Expand Down
9 changes: 9 additions & 0 deletions man/report_card_template_goshawk.Rd

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

0 comments on commit 1dd6c0f

Please sign in to comment.