Skip to contents

This function checks if a given list `params` contains only the allowed named elements. The elements do not have to be present, but if they are, they must be named exactly as specified and must contain the correct data types: float, character, int, int, and float. If any condition is not met, the function stops the script and produces an informative error message. `params` can also be `NA`.

Usage

check_params(params)

Arguments

params

A list to be checked for the required conditions, or `NA`.

Value

This function does not return a value. It stops with an error message if the conditions are not met.