Skip to main content

lglsxp_na_error

Function lglsxp_na_error 

Source
fn lglsxp_na_error() -> SexpError
Expand description

NA-rejecting error for a logical (LGLSXP) scalar that holds NA.

The bare integer/float scalar paths must reject NA_logical_ rather than silently coercing R’s NA_LOGICAL sentinel (i32::MIN) into a finite number. Mirrors the guard the bare i32 (INTSXP) impl already applies.