| validate_positive | R Documentation | 
This function checks whether a parameter value is positive (or non-negative if incl_0 is set to TRUE).
It can handle both single numeric values and vectors, and it raises an error with an informative
message if the validation fails.
validate_positive(param_name, param_value, incl_0 = FALSE, is_vector = FALSE)
| param_name | A string representing the name of the parameter. Used in the error message. | 
| param_value | The parameter value to validate, either a single numeric or a numeric vector. | 
| incl_0 | Logical, if  | 
| is_vector | Logical, if  | 
NULL if validation passes; otherwise, an error is raised.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.