test_objective | R Documentation |
This function is useful for testing or debugging the behavior of objective functions. It can throw a warning and / or an error on purpose.
test_objective(
x,
value = x,
warning_prob = 0,
error_prob = 0,
warning_msg = "warning",
error_msg = "error",
call. = TRUE
)
x |
Any input. |
value |
The return value, any object. |
warning_prob |
The probability for throwing a warning. |
error_prob |
The probability for throwing an error. |
warning_msg |
The warning message. |
error_msg |
The error message. |
call. |
Passed to |
The argument value
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.