SEXPREC: R's fundamental data type at C level

Description Declaration References See Also

Description

\Sexpr[results=rd, stage=render]{c3po:::badge('typedef-str')}\Sexpr[results=rd, stage=render]{c3po:::badge('USE_RINTERNALS')}

S-expression (SEXP) record (REC) structure, a C structure underlying every R object. Accessible via a pointer of type SEXP. SEXPREC is a variant type, with subtypes for all R’s data structures (see SEXPTYPE for a list of subtypes).

The SEXPREC is composed of two parts (five struct members in total):

Declaration

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
typedef struct SEXPREC {
    SEXPREC_HEADER;
    union {
  struct primsxp_struct primsxp;
  struct symsxp_struct symsxp;
  struct listsxp_struct listsxp;
  struct envsxp_struct envsxp;
  struct closxp_struct closxp;
  struct promsxp_struct promsxp;
    } u;
} SEXPREC;

In Rinternals.h.

References

https://cran.r-project.org/doc/manuals/r-patched/R-ints.html#The-_0027data_0027

See Also

SEXP


ramiromagno/c3po documentation built on Jan. 5, 2021, 8:01 p.m.