Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Melkiades committed Jul 23, 2024
1 parent 1e69760 commit 2f9af9c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 4 additions & 3 deletions R/g_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ g_lineplot <- function(df,
}

extra_args <- list(...)
if ("control" %in% names(extra_args) &&
(!is.null(table) && all(table_labels == get_labels_from_stats(table)))) {
table_labels <- table_labels %>% labels_use_control(extra_args[["control"]])
if ("control" %in% names(extra_args)) {
if (!is.null(table) && all(table_labels == get_labels_from_stats(table))) {
table_labels <- table_labels %>% labels_use_control(extra_args[["control"]])
}
}

if (is.character(interval)) {
Expand Down
2 changes: 1 addition & 1 deletion R/summarize_glm_count.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ s_glm_count <- function(df,
distribution = distribution,
weights
)
browser()

if (rate_mean_method == "emmeans") {
emmeans_smry <- summary(results$emmeans_fit, level = conf_level)
} else if (rate_mean_method == "ppmeans") {
Expand Down
6 changes: 2 additions & 4 deletions R/utils_default_stats_formats_labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,8 @@ tern_default_labels <- c(
geom_cv = "CV % Geometric Mean",
pval = "p-value (t-test)", # Default for numeric
pval_counts = "p-value (chi-squared test)", # Default for counts
rate = "Adjusted Rate",
# rate_ci = f_conf_level(conf_level), # to handle better
rate_ratio = "Adjusted Rate Ratio"
# rate_ratio_ci = f_conf_level(conf_level) # to handle better
rate = "Adjusted Rate", # rate_ci = f_conf_level(conf_level), # to handle better
rate_ratio = "Adjusted Rate Ratio" # rate_ratio_ci = f_conf_level(conf_level) # to handle better

Check warning on line 496 in R/utils_default_stats_formats_labels.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/utils_default_stats_formats_labels.R,line=496,col=40,[commented_code_linter] Commented code should be removed.
)

# To deprecate ---------
Expand Down

0 comments on commit 2f9af9c

Please sign in to comment.