-
Notifications
You must be signed in to change notification settings - Fork 20
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
Pull Request by Zilin Huang regarding Issue #222 #229
base: main
Are you sure you want to change the base?
Conversation
|
# Generate an error if the input is a `survfit.coxphms` regression model: ---- | ||
if (inherits(x, "survfitcoxms")) { | ||
cli_abort( | ||
"Argument {.arg x} does not support {.cls survfit.coxphms} object. | ||
Please fit a multi-state model with another project, such as {.fn coxph}." | ||
) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the simplified text we discussed here.
R/ggcuminc.R
Outdated
@@ -69,8 +77,9 @@ ggcuminc <- function(x, outcome = NULL, | |||
cli_inform("Plotting outcome {.val {outcome}}.") | |||
} | |||
if (any(!outcome %in% unique(df$outcome))) { | |||
cli_abort("Argument {.code outcome} must be one or more of {.val {unique(df$outcome)}}") | |||
cli_abort("Argument {.arg x} does not support {.cls survfit.coxphms} object.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this change to the error message. Was this intentional?
R/scale_ggsurvfit.R
Outdated
@@ -34,6 +34,8 @@ | |||
#' # specify additional scales | |||
#' ggsurvfit + | |||
#' scale_ggsurvfit(x_scales = list(breaks = seq(0, 8, by = 2))) | |||
#' | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this spacing addition intentional/needed? if not, can you please revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ddsjoberg I have reverted it back (probably add this space by accident). Thanks for reminding.
Fixed issue #222 by updating the error message.