Skip to contents

Validates that the provided parameter name is a single character string and is not NA.

Usage

assert_is_valid_parameter(param_name)

Arguments

param_name

Character. The name of the parameter to validate.

Value

This function does not return a value. It stops execution with an error message if the validations fail.

Examples

if (FALSE) { # \dontrun{
  assert_is_valid_parameter("age")
} # }