Validates multiple parameters.
validate_params(params)
Returns NULL
invisibly if all validations pass.
[mandatory] (list) A list of parameters to be validated.
The following validations are performed:
- 'admin_lvl': Ensures it is NULL
, 0
, or 1
.
- 'conda': Verifies if it is an available Conda environment.
- 'file_path': Constructs a file path and checks if the file exists.
- 'keys': Ensures it is a non-empty list with valid entries.
- 'limit': Ensures it is a positive numeric value.
- 'mode': Ensures it is 'local' or 'drive'.
- 'new_values': Ensures it is a list with the same length as 'keys'.
- 'user': Verifies it is NULL
or a character value.
- 'path': Verifies if the directory exists.
- 'rebuild': Verifies it is a logical value.
- 'regions': Ensures the first two characters are letters.
- 'start': Ensures it is a valid date.
- 'verbose': Verifies it is a logical value.