Skip to main content

R_MissingArg

Static R_MissingArg 

Source
unsafe static R_MissingArg: SEXP
Expand description

The “missing argument” sentinel value.

When an R function is called without providing a value for a formal argument, R passes R_MissingArg as a placeholder. This is different from R_NilValue (NULL) - a missing argument means “not provided”, while NULL is an explicit value.

In R: f <- function(x) missing(x); f() returns TRUE. Encapsulated by SEXP::missing_arg()