Ensures that a required argument is provided. If the argument is missing, it throws an error with a clear message.
Usage
assert_required_argument(arg, description)
Arguments
- arg
[any
]
The argument to check.
- description
[character(1)
]
A description of the argument's purpose and requirements.
Value
Throws an error if the argument is missing; otherwise, returns NULL
.