Skip to content

Commit

Permalink
dontrun some examples
Browse files Browse the repository at this point in the history
  • Loading branch information
larmarange committed Dec 7, 2021
1 parent a7ace14 commit 0585a95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/model_get_n.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#' )
#' mod %>% model_get_n()
#'
#' \dontrun{
#' mod <- glm(
#' Survived ~ Class * Age + Sex, data = Titanic %>% as.data.frame(),
#' weights = Freq, family = binomial
Expand All @@ -56,6 +57,7 @@
#' )
#' mod %>% model_get_n()
#'
#' dont
#' df <- survival::lung %>% dplyr::mutate(sex = factor(sex))
#' mod <- survival::coxph(survival::Surv(time, status) ~ ph.ecog + age + sex, data = df)
#' mod %>% model_get_n()
Expand All @@ -72,6 +74,7 @@
#' family = binomial, data = lme4::cbpp
#' )
#' mod %>% model_get_n()
#' }
model_get_n <- function(model) {
UseMethod("model_get_n")
}
Expand Down
3 changes: 3 additions & 0 deletions man/model_get_n.Rd

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

0 comments on commit 0585a95

Please sign in to comment.