pub(crate) fn plain_na_check(param: &str) -> StringExpand description
The R test for a plain NA, R’s untyped missing value, as the argument
param: (is.logical(p) && length(p) == 1L && is.na(p)). An optional
scalar argument (Option<T> / Nullable<T> of a scalar T, a scalar
match_arg / choices choice under Option) reads it as “no value”,
like NULL (#2305): the type checks pass it (RAssertion::nullable)
and the choice prelude skips it
(crate::r_wrapper_builder::CallAttribution::match_arg_statement),
as the Rust conversions read it as None
(miniextendr_api::from_r::is_null_or_plain_na). && stops before
is.na() for a value of another type or length, so the test is always
TRUE or FALSE. An optional vector keeps is.null() alone: there a
plain NA is a logical vector of length one.