-
Notifications
You must be signed in to change notification settings - Fork 32
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
create gt_opts
as an alias for generation_time_opts
#564
Comments
I believe we moved towards enforcing the use of the I think the current interface may be verbose but it forces the user to make intentional choices and makes its consequence easier to debug as well. |
Could we provide some short aliases for the annoyingly long ones |
yes could have Just to try it out, it would make: epinow(
data = data_opts(cases),
gt = gt_opts(Gamma(mean = 3, sd = 1)))
) Clarity vs brevity, what do people think? |
Personally I like the idea of an alias here but keep the descriptive arg name and the long form for the docs? |
_opts
interfacegt_opts
as an alias for generation_time_opts
As we move towards extending the
_opts
interface to specifying the data and preprocessing (#346) we are adding complexity to the user interaction. Where in the past a user would have written something like:we're moving towards requiring
I'm wondering if we should provide a simpler version where if any of the arguments requiring an
_opts
helper function are not specified using said helper functions we should call it for the user and pass on the first argument. This would enable the user to specify some of their desired (e.g. case data, generation time) without being exposed to the full interface.This would mean that one could write
with the same results as the calls above.
The text was updated successfully, but these errors were encountered: