Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many warnings in examples #1178

Closed
19 tasks done
pawelru opened this issue Jan 19, 2024 · 0 comments · Fixed by #1180
Closed
19 tasks done

Too many warnings in examples #1178

pawelru opened this issue Jan 19, 2024 · 0 comments · Fixed by #1180
Assignees
Labels

Comments

@pawelru
Copy link
Contributor

pawelru commented Jan 19, 2024

I am checking our packages against warnings in examples and this package has too many of them. While warnings in general are not necessarily wrong it gives some bad experience when occured in examples. These should be small, simple and clean(!).

I do understand that sometimes this is intended / unavoidable but have a look at this and amend the example code to avoid it if possible.

At the moment of creating this issue a following list of files returns a warning but please check all again when doing this task.

  • analyze_variables.Rd - Fix bug in format_value causing warning for NAs formatters#250
  • estimate_proportions.Rd - false positive from \insertCite
  • extract_rsp_biomarkers.Rd
  • fit_coxreg.Rd - no warning found (with most recent package versions installed)
  • fit_logistic.Rd - useful warning about model convergence
  • fit_rsp_step.Rd
  • h_ancova.Rd - no warning found (with most recent package versions installed)
  • h_logistic_regression.Rd - useful warning about model convergence
  • h_odds_ratio.Rd - no warning found (with most recent package versions installed)
  • h_prop_diff.Rd - false positive from \insertCite
  • h_prop_diff_test.Rd - false positive from \insertCite
  • h_proportions.Rd - false positive from \insertCite
  • h_response_subgroups.Rd - no warning found (with most recent package versions installed)
  • h_stack_by_baskets.Rd
  • odds_ratio.Rd - no warning found (with most recent package versions installed)
  • response_subgroups.Rd - false positive from \insertCite
  • strata_normal_quantile.Rd - false positive from \insertCite
  • summarize_logistic.Rd - useful warning about model convergence
  • tidy.glm.Rd - useful warning about model convergence

Code that I use to identify those:

withr::with_options(
  list(warn = 2),
  devtools::run_examples(run_donttest = TRUE, run_dontrun = FALSE)
)
@pawelru pawelru added the sme label Jan 19, 2024
@edelarua edelarua self-assigned this Jan 19, 2024
edelarua added a commit that referenced this issue Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants