validate_parameters {regions} | R Documentation |
Assertion for Correct Function Calls
Description
Assertions are made to give early and precise error messages for wrong API call parameters.
Usage
validate_parameters(typology = NULL, param = NULL, param_name = NULL)
Arguments
typology |
Currently the following typologies are supported:
|
param |
A parameter value that must not be |
param_name |
The name of the parameter that must not have a value of |
Details
These assertions are called from various wrapper functions. However, you can also call this function directly to make sure that you are adding (programmatically) the correct parameters to a call.
All validate_parameters
parameters default to NULL
.
Asserts the correct parameter values for any values that are not NULL
.
Value
A boolean, logical variable if the parameter calls are valid.