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

Follow-up on cleaning up summary() functions #465

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

yihui
Copy link
Contributor

@yihui yihui commented Sep 6, 2024

Two more changes according to #461 (comment)

# If the method is COMBO, remove the column of "~HR at bound", and remove AHR from header
if (method == "combo" && "~hr at bound" %in% names(xy))
stop("'~hr at bound' can't be displayed!")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since ~hr at bound can't possibly exist in xy, perhaps we can remove this check. It doesn't break any test.

@LittleBeannie I'm not sure if this is the right thing to do.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yihui , yes, you are right that ~hr at bound does not exist in xy, because it is not part of the raw output from the MaxCombo test (see screenshot below).

Thanks for the confirmation!
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, then I guess we don't really need the check here. Thanks for letting me know!

Copy link
Collaborator

@LittleBeannie LittleBeannie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @yihui ! I will get it merged now.

@LittleBeannie LittleBeannie merged commit 6161b56 into Merck:main Sep 6, 2024
7 checks passed
@yihui yihui deleted the summary-followup branch September 6, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants