Skip to content

Commit

Permalink
Add warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Oct 7, 2024
1 parent 24c72a4 commit b468463
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/odds_ratio.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ s_odds_ratio <- function(df,
}
}

if (is.na(y$or_ci$est)) {
message(
'Unable to compute the odds ratio estimate. Please try re-running the function with ',

Check warning on line 135 in R/odds_ratio.R

View workflow job for this annotation

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

file=R/odds_ratio.R,line=135,col=7,[quotes_linter] Only use double-quotes.
'parameter `method` set to "approximate".'
)
}

y$or_ci <- formatters::with_label(
x = y$or_ci,
label = paste0("Odds Ratio (", 100 * conf_level, "% CI)")
Expand Down

0 comments on commit b468463

Please sign in to comment.