tidymodels / censored

Parsnip wrappers for survival models
https://censored.tidymodels.org/
Other
123 stars 12 forks source link

improve error message for checking usage of `strata()` #183

Closed hfrick closed 2 years ago

hfrick commented 2 years ago

closes #68

censored:::check_strata_remaining(rlang::expr(x * (y + strata(s)) + z))
#> Error:
#> ! Stratification must be nested under a chain of `+` calls.
#> ℹ # Good: ~ x1 + x2 + strata(s)
#> ℹ # Bad: ~ x1 + (x2 + strata(s))

Created on 2022-05-20 by the reprex package (v2.0.1)

github-actions[bot] commented 2 years ago

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.