Assert that an input is a single logical value
Source:R/assert_data_table_available.R
dot-assert_scalar_flag.RdAssert that an input is a single logical value
Details
This function is used internally to validate that certain inputs
are single logical values (flags). It checks that x is of type
logical, has length 1, and is not NA. If any of these conditions fail,
an informative error message is thrown indicating the argument name and
the nature of the issue.