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

When you need more options #162

Open
hadley opened this issue Aug 4, 2023 · 0 comments
Open

When you need more options #162

hadley opened this issue Aug 4, 2023 · 0 comments

Comments

@hadley
Copy link
Member

hadley commented Aug 4, 2023

You've used https://design.tidyverse.org/argument-clutter.html and you just keep adding more and more arguments to that function until it becomes overwhelming. What should you do? It's good to stick with the explicit options object, but instead of setting all the options in one function, provide one function to create the options object and a bunch of functions to modify it.

Examples include ggplot2 objects, httr2 (which is a good opportunity for a discussion of why httr is a less good approach), tidymodels.

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

No branches or pull requests

1 participant