Skip to content

Conversation

@yihui
Copy link
Collaborator

@yihui yihui commented Oct 27, 2025

This PR tries to abstract away the tedious boilerplate code in https://github.com/keaven/gsDesign2Shiny/issues/38 to create cut functions with a simple shortcut, i.e., cut = "auto".

I don't really understand the stats terminologies here, and would like to hear your suggestion on the name of this shortcut ("auto" is just my arbitrary choice).

@yihui yihui requested a review from LittleBeannie October 27, 2025 21:22
@yihui yihui self-assigned this Oct 27, 2025
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!

2 minor comments:

  • If sim_gs_n(original_design = x, cut = NULL, ...), we will set cut = auto_cut(x) inside of sim_gs_n.
  • Shall we name auto_cut into cut_from_design? I am not good at naming, so I will defer to you, John and Nan's suggestions!

Copy link
Collaborator Author

@yihui yihui left a comment

Choose a reason for hiding this comment

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

Both changes are done now.

Copy link
Collaborator

@jdblischak jdblischak left a comment

Choose a reason for hiding this comment

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

Cool idea!

Copy link
Collaborator

@jdblischak jdblischak left a comment

Choose a reason for hiding this comment

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

Should we add an example and/or test?

@yihui
Copy link
Collaborator Author

yihui commented Nov 8, 2025

Should we add an example and/or test?

I don't have an opinion. @LittleBeannie What do you think?

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!

@LittleBeannie LittleBeannie merged commit debda30 into main Nov 13, 2025
@LittleBeannie LittleBeannie deleted the auto-cut branch November 13, 2025 18:29
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.

4 participants