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