statnet / ergm

Fit, Simulate and Diagnose Exponential-Family Models for Networks
Other
94 stars 36 forks source link

Use ellipsis::check_dots_used() or a similar mechanism to catch misspelled arguments #499

Closed krivit closed 1 year ago

krivit commented 1 year ago

For example, if someone types ergm(samplike~edges, control.ergm=control.ergm(force.main=TRUE)) rather than ergm(samplike~edges, control=control.ergm(force.main=TRUE)), it'd be nice to catch that and let the user know. However, there are valid uses of ... in ergm(), including arguments passed to ergm_model() and to the fitting algorithms, so a more sophisticated approach provided by check_dots_used() is needed.