View source: R/00-misc-support-functions.R
validate_control | R Documentation |
This function checks that the names and value types for a supplied control
list
are valid and are unlikely to cause further errors within aghq
and related functions.
Users should not have to worry about this and should just use default_control()
and related
constructors.
validate_control(control, type = c("aghq", "marglaplace", "tmb"), ...)
control |
A list. |
type |
One of |
... |
Not used. |
To users reading this: just use default_control()
, default_control_marglaplace()
, or default_control_tmb()
as appropriate, to ensure that your control arguments are correct. This function just exists to provide more
descriptive error messages in the event that an incompatible list is provided.
Logical, TRUE
if the list of control arguments is valid, else FALSE
.
validate_control(default_control())
validate_control(default_control_marglaplace(),type = "marglaplace")
validate_control(default_control_tmb(),type = "tmb")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.