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.
For example, if someone types
ergm(samplike~edges, control.ergm=control.ergm(force.main=TRUE))
rather thanergm(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...
inergm()
, including arguments passed toergm_model()
and to the fitting algorithms, so a more sophisticated approach provided bycheck_dots_used()
is needed.