-
Notifications
You must be signed in to change notification settings - Fork 11
Create cut functions automatically based on the design object #350
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
Conversation
LittleBeannie
left a comment
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.
Thank you, @yihui!
2 minor comments:
- If
sim_gs_n(original_design = x, cut = NULL, ...), we will setcut = auto_cut(x)inside ofsim_gs_n. - Shall we name
auto_cutintocut_from_design? I am not good at naming, so I will defer to you, John and Nan's suggestions!
yihui
left a comment
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.
Both changes are done now.
jdblischak
left a comment
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.
Cool idea!
jdblischak
left a comment
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.
Should we add an example and/or test?
I don't have an opinion. @LittleBeannie What do you think? |
[ci skip]
LittleBeannie
left a comment
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.
Thank you, @yihui!
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).