Native API stats of Rinternals.h with USE R INTERNALS

From R Consortium Wiki
Revision as of 15:20, 20 June 2016 by Lukasstadler (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Input

#define USE_RINTERNALS
#include "Rinternals.h"

Result

#define ANYSXP 18                                            // ANYSXP used 14 times in RPostgreSQL, Rcpp11, seqminer, Rcpp, pryr, rtkpp, rtkore, RGtk2
#define ATTRIB(x) ((x)->attrib)                              // ATTRIB used 83 times in 20 packages
#define BCODESXP 21                                          // BCODESXP used 15 times in rcppbugs, Rcpp11, seqminer, Rcpp, pryr, rtkpp, rtkore
#define BCODE_CODE(x) ((x)->u.listsxp.carval)                // BCODE_CODE unused
#define BCODE_CONSTS(x) ((x)->u.listsxp.cdrval)              // BCODE_CONSTS unused
#define BCODE_EXPR(x) ((x)->u.listsxp.tagval)                // BCODE_EXPR unused
#define BODY(x) ((x)->u.closxp.body)                         // BODY used 48 times in 15 packages
#define BODY_EXPR(e) R_ClosureExpr(e)                        // BODY_EXPR unused
#define BUILTINSXP 8                                         // BUILTINSXP used 24 times in 11 packages
#define CAAR(e) ((((e)->u.listsxp.carval))->u.listsxp.carval) // CAAR unused
#define CAD4R(e) ((((((((((e)->u.listsxp.cdrval))->u.listsxp.cdrval))->u.listsxp.cdrval))->u.listsxp.cdrval))->u.listsxp.carval) // CAD4R used 14 times in earth, foreign, actuar
#define CADDDR(e) ((((((((e)->u.listsxp.cdrval))->u.listsxp.cdrval))->u.listsxp.cdrval))->u.listsxp.carval) // CADDDR used 21 times in RPostgreSQL, foreign, actuar, bibtex
#define CADDR(e) ((((((e)->u.listsxp.cdrval))->u.listsxp.cdrval))->u.listsxp.carval) // CADDR used 52 times in 11 packages
#define CADR(e) ((((e)->u.listsxp.cdrval))->u.listsxp.carval) // CADR used 104 times in 17 packages
#define CAR(e) ((e)->u.listsxp.carval)                       // CAR used 575 times in 63 packages
#define CDAR(e) ((((e)->u.listsxp.carval))->u.listsxp.cdrval) // CDAR unused
#define CDDDR(e) ((((((e)->u.listsxp.cdrval))->u.listsxp.cdrval))->u.listsxp.cdrval) // CDDDR unused
#define CDDR(e) ((((e)->u.listsxp.cdrval))->u.listsxp.cdrval) // CDDR used 52 times in Rlabkey, Rcpp11, dplyr, proxy, Rcpp, slam, tikzDevice, OpenCL, svd
#define CDR(e) ((e)->u.listsxp.cdrval)                       // CDR used 4523 times in 76 packages
#define CHAR(x) ((const char *) (((SEXPREC_ALIGN *) (x)) + 1)) // CHAR used 4405 times in 362 packages
#define CHARSXP 9                                            // CHARSXP used 106 times in 33 packages
#define CLOENV(x) ((x)->u.closxp.env)                        // CLOENV used 23 times in Rcpp11, covr, pomp, Rcpp, pryr, testthat, qtbase
#define CLOSXP 3                                             // CLOSXP used 83 times in 30 packages
#define COMPLEX(x) ((Rcomplex *) (((SEXPREC_ALIGN *) (x)) + 1)) // COMPLEX used 1697 times in 71 packages
#define CONS(a, b) Rf_cons((a), (b))                         // CONS used 458 times in 30 packages
#define CPLXSXP 15                                           // CPLXSXP used 409 times in 49 packages
#define CreateTag Rf_CreateTag                               // CreateTag used 1 times in rgp
#define DATAPTR(x) (((SEXPREC_ALIGN *) (x)) + 1)             // DATAPTR used 113 times in 11 packages
#define DDVAL(x) ((x)->sxpinfo.gp & 1)                       // DDVAL unused
#define DDVAL_MASK 1                                         // DDVAL_MASK unused
#define DECREMENT_REFCNT(x) do {} while(0)                   // DECREMENT_REFCNT unused
#define DISABLE_REFCNT(x) do {} while(0)                     // DISABLE_REFCNT unused
#define DOTSXP 17                                            // DOTSXP used 16 times in RPostgreSQL, PythonInR, Rcpp11, seqminer, Rcpp, pryr, rtkpp, spikeSlabGAM, rtkore
#define DropDims Rf_DropDims                                 // DropDims unused
#define ENABLE_NLS 1                                         // ENABLE_NLS used 80 times in 59 packages
#define ENABLE_REFCNT(x) do {} while(0)                      // ENABLE_REFCNT unused
#define ENCLOS(x) ((x)->u.envsxp.enclos)                     // ENCLOS used 7 times in Rcpp, pryr, rJava, Rcpp11, RGtk2
#define ENVFLAGS(x) ((x)->sxpinfo.gp)                        // ENVFLAGS unused
#define ENVSXP 4                                             // ENVSXP used 63 times in 25 packages
#define EXPRSXP 20                                           // EXPRSXP used 84 times in 14 packages
#define EXTPTRSXP 22                                         // EXTPTRSXP used 386 times in 55 packages
#define EXTPTR_PROT(x) ((x)->u.listsxp.cdrval)               // EXTPTR_PROT used 5 times in rJava, pryr
#define EXTPTR_PTR(x) ((x)->u.listsxp.carval)                // EXTPTR_PTR used 428 times in 15 packages
#define EXTPTR_TAG(x) ((x)->u.listsxp.tagval)                // EXTPTR_TAG used 9 times in excel.link, pryr, rJava, gsl
#define FORMALS(x) ((x)->u.closxp.formals)                   // FORMALS used 15 times in qtpaint, RSclient, PBSddesolve, Rserve, covr, pryr, rgp, testthat, RandomFields
#define FRAME(x) ((x)->u.envsxp.frame)                       // FRAME used 19 times in deTestSet, IRISSeismic, pryr, BayesBridge, datamap, BayesLogit
#define FREESXP 31                                           // FREESXP used 4 times in rtkpp, rtkore
#define FUNSXP 99                                            // FUNSXP used 6 times in dplyr, rtkpp, data.table, rtkore
#define GetArrayDimnames Rf_GetArrayDimnames                 // GetArrayDimnames unused
#define GetColNames Rf_GetColNames                           // GetColNames unused
#define GetMatrixDimnames Rf_GetMatrixDimnames               // GetMatrixDimnames used 2 times in Kmisc, optmatch
#define GetOption Rf_GetOption                               // GetOption used 5 times in rgl, gmp, Cairo, RGtk2
#define GetOption1 Rf_GetOption1                             // GetOption1 used 1 times in PCICt
#define GetOptionDigits Rf_GetOptionDigits                   // GetOptionDigits unused
#define GetOptionWidth Rf_GetOptionWidth                     // GetOptionWidth unused
#define GetRowNames Rf_GetRowNames                           // GetRowNames unused
#define HASHTAB(x) ((x)->u.envsxp.hashtab)                   // HASHTAB used 12 times in Rcpp, pryr, datamap, Rcpp11, qtbase
#define HAVE_ALLOCA_H 1                                      // HAVE_ALLOCA_H used 15 times in treatSens, Matrix, TMB, pbdZMQ, ore, dbarts
#define HAVE_AQUA 1                                          // HAVE_AQUA used 13 times in 11 packages
#define HAVE_F77_UNDERSCORE 1                                // HAVE_F77_UNDERSCORE used 2 times in igraph
#define IEEE_754 1                                           // IEEE_754 used 47 times in igraph, Rcpp, data.table, stringi
#define INCREMENT_NAMED(x) do { SEXP __x__ = (x); if (((__x__)->sxpinfo.named) != 2) (((__x__)->sxpinfo.named)=(((__x__)->sxpinfo.named) + 1)); } while (0) // INCREMENT_NAMED unused
#define INCREMENT_REFCNT(x) do {} while(0)                   // INCREMENT_REFCNT unused
#define INLINE_PROTECT                                       // INLINE_PROTECT unused
#define INTEGER(x) ((int *) (((SEXPREC_ALIGN *) (x)) + 1))   // INTEGER used 41659 times in 758 packages
#define INTERNAL(x) ((x)->u.symsxp.internal)                 // INTERNAL used 1014 times in 63 packages
#define INTSXP 13                                            // INTSXP used 6341 times in 471 packages
#define ISNA(x) R_IsNA(x)                                    // ISNA used 649 times in 100 packages
#define ISNAN(x) R_isnancpp(x)                               // ISNAN used 1342 times in 146 packages
#define IS_GETTER_CALL(call) (((((call)->u.listsxp.cdrval))->u.listsxp.carval) == R_TmpvalSymbol) // IS_GETTER_CALL unused
#define IS_LONG_VEC(x) ((((VECSEXP) (x))->vecsxp.length) == -1) // IS_LONG_VEC used 1 times in RProtoBuf
#define IS_S4_OBJECT(x) ((x)->sxpinfo.gp & ((unsigned short)(1<<4))) // IS_S4_OBJECT used 23 times in Rmosek, Runuran, data.table, xts, Matrix, slam, zoo, HiPLARM, OpenMx, tau
#define IS_SCALAR(x, type) (((x)->sxpinfo.type) == (type) && (((VECSEXP) (x))->vecsxp.length) == 1) // IS_SCALAR unused
#define IS_SIMPLE_SCALAR(x, type) ((((x)->sxpinfo.type) == (type) && (((VECSEXP) (x))->vecsxp.length) == 1) && ((x)->attrib) == R_NilValue) // IS_SIMPLE_SCALAR unused
#define IndexWidth Rf_IndexWidth                             // IndexWidth unused
#define LANGSXP 6                                            // LANGSXP used 1276 times in 53 packages
#define LCONS(a, b) Rf_lcons((a), (b))                       // LCONS used 212 times in 24 packages
#define LENGTH(x) (((((VECSEXP) (x))->vecsxp.length) == -1) ? R_BadLongVector(x, \"/var/folders/t8/1ry582nx6438y8pn6gk20f3c0000gn/T/preprocessor_test2233054488227688894.cpp\", 453) : (((VECSEXP) (x))->vecsxp.length)) // LENGTH used 5845 times in 356 packages
#define LEVELS(x) ((x)->sxpinfo.gp)                          // LEVELS used 18 times in rtdists, rPref, BsMD, data.table, stringi, dplyr, OBsMD, pbdZMQ, astrochron, RandomFields
#define LGLSXP 10                                            // LGLSXP used 1430 times in 166 packages
#define LISTSXP 2                                            // LISTSXP used 87 times in 21 packages
#define LISTVAL(x) ((x)->u.listsxp)                          // LISTVAL unused
#define LOGICAL(x) ((int *) (((SEXPREC_ALIGN *) (x)) + 1))   // LOGICAL used 4473 times in 288 packages
#define LONG_VECTOR_SUPPORT                                  // LONG_VECTOR_SUPPORT used 56 times in stringdist, matrixStats, RApiSerialize, Rhpc, pbdMPI, Rcpp11, Matrix
#define LONG_VEC_LENGTH(x) ((R_long_vec_hdr_t *) (x))[-1].lv_length // LONG_VEC_LENGTH used 1 times in Rcpp11
#define LONG_VEC_TRUELENGTH(x) ((R_long_vec_hdr_t *) (x))[-1].lv_truelength // LONG_VEC_TRUELENGTH unused
#define LibExport                                            // LibExport used 2 times in hsmm
#define LibExtern extern                                     // LibExtern used 4 times in rJava
#define LibImport                                            // LibImport unused
#define MARK(x) ((x)->sxpinfo.mark)                          // MARK used 251 times in 21 packages
#define MARK_NOT_MUTABLE(x) (((x)->sxpinfo.named)=(2))       // MARK_NOT_MUTABLE unused
#define MAX_NUM_SEXPTYPE (1<<5)                              // MAX_NUM_SEXPTYPE unused
#define MAYBE_REFERENCED(x) (! (((x)->sxpinfo.named) == 0))  // MAYBE_REFERENCED unused
#define MAYBE_SHARED(x) (((x)->sxpinfo.named) > 1)           // MAYBE_SHARED unused
#define MISSING(x) ((x)->sxpinfo.gp & 15)                    // MISSING used 125 times in 25 packages
#define MISSING_MASK 15                                      // MISSING_MASK used 10 times in rJPSGCS
#define NAMED(x) ((x)->sxpinfo.named)                        // NAMED used 62 times in 22 packages
#define NAMEDMAX 2                                           // NAMEDMAX unused
#define NA_INTEGER R_NaInt                                   // NA_INTEGER used 1520 times in 183 packages
#define NA_LOGICAL R_NaInt                                   // NA_LOGICAL used 355 times in 73 packages
#define NA_REAL R_NaReal                                     // NA_REAL used 1667 times in 226 packages
#define NA_STRING R_NaString                                 // NA_STRING used 574 times in 90 packages
#define NEWSXP 30                                            // NEWSXP used 4 times in rtkpp, rtkore
#define NILSXP 0                                             // NILSXP used 169 times in 44 packages
#define NORET __attribute__((noreturn))                      // NORET unused
#define NOT_SHARED(x) (! (((x)->sxpinfo.named) > 1))         // NOT_SHARED unused
#define NO_REFERENCES(x) (((x)->sxpinfo.named) == 0)         // NO_REFERENCES unused
#define NonNullStringMatch Rf_NonNullStringMatch             // NonNullStringMatch used 8 times in proxy, arules, arulesSequences, cba
#define OBJECT(x) ((x)->sxpinfo.obj)                         // OBJECT used 102 times in 28 packages
#define PREXPR(e) R_PromiseExpr(e)                           // PREXPR used 4 times in igraph, lazyeval
#define PRINTNAME(x) ((x)->u.symsxp.pname)                   // PRINTNAME used 92 times in 29 packages
#define PROMSXP 5                                            // PROMSXP used 43 times in 14 packages
#define PROTECT(s) Rf_protect(s)                             // PROTECT used 24686 times in 767 packages
#define PROTECT_WITH_INDEX(x,i) R_ProtectWithIndex(x,i)      // PROTECT_WITH_INDEX used 91 times in 27 packages
#define PairToVectorList Rf_PairToVectorList                 // PairToVectorList used 7 times in cba, rcdd
#define PrintValue Rf_PrintValue                             // PrintValue used 119 times in 13 packages
#define RAW(x) ((Rbyte *) (((SEXPREC_ALIGN *) (x)) + 1))     // RAW used 880 times in 99 packages
#define RAWSXP 24                                            // RAWSXP used 587 times in 92 packages
#define RDEBUG(x) ((x)->sxpinfo.debug)                       // RDEBUG used 69 times in rmetasim
#define REAL(x) ((double *) (((SEXPREC_ALIGN *) (x)) + 1))   // REAL used 30947 times in 687 packages
#define REALSXP 14                                           // REALSXP used 10171 times in 573 packages
#define REFCNT(x) 0                                          // REFCNT unused
#define REFCNTMAX (4 - 1)                                    // REFCNTMAX unused
#define REPROTECT(x,i) R_Reprotect(x,i)                      // REPROTECT used 130 times in 25 packages
#define RSTEP(x) ((x)->sxpinfo.spare)                        // RSTEP unused
#define RTRACE(x) ((x)->sxpinfo.trace)                       // RTRACE unused
#define R_ALLOCATOR_TYPE                                     // R_ALLOCATOR_TYPE unused
#define R_ARITH_H_                                           // R_ARITH_H_ unused
#define R_COMPLEX_H                                          // R_COMPLEX_H used 1 times in uniqueAtomMat
#define R_CheckStack() do { void __attribute__((noreturn)) R_SignalCStackOverflow(intptr_t); int dummy; intptr_t usage = R_CStackDir * (R_CStackStart - (uintptr_t)&dummy); if(R_CStackLimit != -1 && usage > ((intptr_t) R_CStackLimit)) R_SignalCStackOverflow(usage); } while (FALSE) // R_CheckStack used 115 times in vcrpart, actuar, cplm, lme4, Matrix, GNE, randtoolbox, HiPLARM, rngWELL, pedigreemm
#define R_ERROR_H_                                           // R_ERROR_H_ unused
#define R_EXT_BOOLEAN_H_                                     // R_EXT_BOOLEAN_H_ used 2 times in jpeg, Rcpp11
#define R_EXT_MEMORY_H_                                      // R_EXT_MEMORY_H_ unused
#define R_EXT_PRINT_H_                                       // R_EXT_PRINT_H_ used 6 times in spTDyn, spTimer
#define R_EXT_UTILS_H_                                       // R_EXT_UTILS_H_ unused
#define R_FINITE(x) R_finite(x)                              // R_FINITE used 1387 times in 145 packages
#define R_INLINE inline                                      // R_INLINE used 330 times in 34 packages
#define R_INTERNALS_H_                                       // R_INTERNALS_H_ used 7 times in uniqueAtomMat, rtkpp, rtkore, spatstat
#define R_LEN_T_MAX 2147483647                               // R_LEN_T_MAX used 4 times in stringdist, matrixStats, FREGAT, Rcpp11
#define R_LONG_VEC_TOKEN -1                                  // R_LONG_VEC_TOKEN used 1 times in Rcpp11
#define R_RCONFIG_H                                          // R_RCONFIG_H unused
#define R_SHORT_LEN_MAX 2147483647                           // R_SHORT_LEN_MAX used 1 times in pbdMPI
#define R_XDR_DOUBLE_SIZE 8                                  // R_XDR_DOUBLE_SIZE used 2 times in rgdal
#define R_XDR_INTEGER_SIZE 4                                 // R_XDR_INTEGER_SIZE used 3 times in rgdal
#define R_XLEN_T_MAX 4503599627370496                        // R_XLEN_T_MAX used 7 times in stringdist, Matrix, matrixStats, RApiSerialize, Rhpc
#define S3Class Rf_S3Class                                   // S3Class used 4 times in RInside, littler
#define S4SXP 25                                             // S4SXP used 71 times in 15 packages
#define S4_OBJECT_MASK ((unsigned short)(1<<4))              // S4_OBJECT_MASK unused
#define SETLENGTH(x,v) do { SEXP sl__x__ = (x); R_xlen_t sl__v__ = (v); if (((((VECSEXP) (sl__x__))->vecsxp.length) == -1)) (((R_long_vec_hdr_t *) (sl__x__))[-1].lv_length = (sl__v__)); else ((((VECSEXP) (sl__x__))->vecsxp.length) = ((R_len_t) sl__v__)); } while (0) // SETLENGTH used 65 times in 11 packages
#define SETLEVELS(x,v) (((x)->sxpinfo.gp)=((unsigned short)v)) // SETLEVELS used 2 times in Rcpp11
#define SET_DDVAL(x,v) ((v) ? (((x)->sxpinfo.gp) |= 1) : (((x)->sxpinfo.gp) &= ~1)) // SET_DDVAL unused
#define SET_DDVAL_BIT(x) (((x)->sxpinfo.gp) |= 1)            // SET_DDVAL_BIT unused
#define SET_ENVFLAGS(x,v) (((x)->sxpinfo.gp)=(v))            // SET_ENVFLAGS unused
#define SET_LONG_VEC_LENGTH(x,v) (((R_long_vec_hdr_t *) (x))[-1].lv_length = (v)) // SET_LONG_VEC_LENGTH unused
#define SET_LONG_VEC_TRUELENGTH(x,v) (((R_long_vec_hdr_t *) (x))[-1].lv_truelength = (v)) // SET_LONG_VEC_TRUELENGTH unused
#define SET_MISSING(x,v) do { SEXP __x__ = (x); int __v__ = (v); int __other_flags__ = __x__->sxpinfo.gp & ~15; __x__->sxpinfo.gp = __other_flags__ | __v__; } while (0) // SET_MISSING used 1 times in sprint
#define SET_NAMED(x, v) (((x)->sxpinfo.named)=(v))           // SET_NAMED used 10 times in dplyr, yaml, data.table, iotools, RSQLite
#define SET_OBJECT(x,v) (((x)->sxpinfo.obj)=(v))             // SET_OBJECT used 32 times in RSclient, reshape2, Rserve, data.table, actuar, dplyr, proxy, rmongodb, slam, tau
#define SET_RDEBUG(x,v) (((x)->sxpinfo.debug)=(v))           // SET_RDEBUG unused
#define SET_REFCNT(x,v) do {} while(0)                       // SET_REFCNT unused
#define SET_RSTEP(x,v) (((x)->sxpinfo.spare)=(v))            // SET_RSTEP unused
#define SET_RTRACE(x,v) (((x)->sxpinfo.trace)=(v))           // SET_RTRACE unused
#define SET_S4_OBJECT(x) (((x)->sxpinfo.gp) |= ((unsigned short)(1<<4))) // SET_S4_OBJECT used 12 times in RSclient, redland, Rserve, data.table, FREGAT, rJPSGCS, tau
#define SET_SHORT_VEC_LENGTH SET_SHORT_VEC_LENGTH            // SET_SHORT_VEC_LENGTH unused
#define SET_SHORT_VEC_TRUELENGTH SET_SHORT_VEC_TRUELENGTH    // SET_SHORT_VEC_TRUELENGTH unused
#define SET_TRACKREFS(x,v) do {} while(0)                    // SET_TRACKREFS unused
#define SET_TRUELENGTH(x,v) do { SEXP sl__x__ = (x); R_xlen_t sl__v__ = (v); if (((((VECSEXP) (sl__x__))->vecsxp.length) == -1)) (((R_long_vec_hdr_t *) (sl__x__))[-1].lv_truelength = (sl__v__)); else ((((VECSEXP) (sl__x__))->vecsxp.truelength) = ((R_len_t) sl__v__)); } while (0) // SET_TRUELENGTH used 26 times in data.table
#define SET_TYPEOF(x,v) (((x)->sxpinfo.type)=(v))            // SET_TYPEOF used 38 times in 21 packages
#define SEXPREC_HEADER <defined>                             // SEXPREC_HEADER unused
#define SHORT_VEC_LENGTH(x) (((VECSEXP) (x))->vecsxp.length) // SHORT_VEC_LENGTH used 1 times in Rcpp11
#define SHORT_VEC_TRUELENGTH(x) (((VECSEXP) (x))->vecsxp.truelength) // SHORT_VEC_TRUELENGTH unused
#define SIZEOF_SIZE_T 8                                      // SIZEOF_SIZE_T used 1 times in PythonInR
#define SPECIALSXP 7                                         // SPECIALSXP used 22 times in RPostgreSQL, PythonInR, Rcpp11, purrr, seqminer, Rcpp, yaml, pryr, rtkpp, rtkore
#define STRING_ELT(x,i) ((SEXP *) (((SEXPREC_ALIGN *) (x)) + 1))[i] // STRING_ELT used 4143 times in 333 packages
#define STRING_PTR(x) ((SEXP *) (((SEXPREC_ALIGN *) (x)) + 1)) // STRING_PTR used 65 times in 14 packages
#define STRSXP 16                                            // STRSXP used 3247 times in 327 packages
#define SUPPORT_MBCS 1                                       // SUPPORT_MBCS used 1 times in bibtex
#define SUPPORT_UTF8 1                                       // SUPPORT_UTF8 used 3 times in tau, rindex, stringi
#define SYMSXP 1                                             // SYMSXP used 94 times in 25 packages
#define SYMVALUE(x) ((x)->u.symsxp.value)                    // SYMVALUE unused
#define ScalarComplex Rf_ScalarComplex                       // ScalarComplex unused
#define ScalarInteger Rf_ScalarInteger                       // ScalarInteger used 704 times in 88 packages
#define ScalarLogical Rf_ScalarLogical                       // ScalarLogical used 450 times in 64 packages
#define ScalarRaw Rf_ScalarRaw                               // ScalarRaw used 4 times in qtbase, RGtk2
#define ScalarReal Rf_ScalarReal                             // ScalarReal used 330 times in 65 packages
#define ScalarString Rf_ScalarString                         // ScalarString used 198 times in 37 packages
#define StringBlank Rf_StringBlank                           // StringBlank unused
#define StringFalse Rf_StringFalse                           // StringFalse used 3 times in iotools
#define StringTrue Rf_StringTrue                             // StringTrue used 3 times in iotools
#define TAG(e) ((e)->u.listsxp.tagval)                       // TAG used 513 times in 40 packages
#define TRACKREFS(x) FALSE                                   // TRACKREFS unused
#define TRUELENGTH(x) (((((VECSEXP) (x))->vecsxp.length) == -1) ? R_BadLongVector(x, \"/var/folders/t8/1ry582nx6438y8pn6gk20f3c0000gn/T/preprocessor_test2233054488227688894.cpp\", 1341) : (((VECSEXP) (x))->vecsxp.truelength)) // TRUELENGTH used 37 times in data.table
#define TYPEOF(x) ((x)->sxpinfo.type)                        // TYPEOF used 2832 times in 195 packages
#define TYPE_BITS 5                                          // TYPE_BITS used 2 times in dplyr
#define UNPROTECT(n) Rf_unprotect(n)                         // UNPROTECT used 12247 times in 758 packages
#define UNPROTECT_PTR(s) Rf_unprotect_ptr(s)                 // UNPROTECT_PTR used 307 times in 14 packages
#define UNSET_DDVAL_BIT(x) (((x)->sxpinfo.gp) &= ~1)         // UNSET_DDVAL_BIT unused
#define UNSET_S4_OBJECT(x) (((x)->sxpinfo.gp) &= ~((unsigned short)(1<<4))) // UNSET_S4_OBJECT used 2 times in data.table, slam
#define VECSXP 19                                            // VECSXP used 3142 times in 385 packages
#define VECTOR_ELT(x,i) ((SEXP *) (((SEXPREC_ALIGN *) (x)) + 1))[i] // VECTOR_ELT used 8626 times in 291 packages
#define VECTOR_PTR(x) ((SEXP *) (((SEXPREC_ALIGN *) (x)) + 1)) // VECTOR_PTR used 17 times in bit, AdaptFitOS, RJSONIO, Rcpp11, bit64, Rcpp, locfit, iotools
#define VectorToPairList Rf_VectorToPairList                 // VectorToPairList used 13 times in pomp, arules
#define WEAKREFSXP 23                                        // WEAKREFSXP used 19 times in seqminer, Rcpp, pryr, rtkpp, rtkore, Rcpp11
#define XLENGTH(x) (((((VECSEXP) (x))->vecsxp.length) == -1) ? ((R_long_vec_hdr_t *) (x))[-1].lv_length : (((VECSEXP) (x))->vecsxp.length)) // XLENGTH used 287 times in 21 packages
#define XTRUELENGTH(x) (((((VECSEXP) (x))->vecsxp.length) == -1) ? ((R_long_vec_hdr_t *) (x))[-1].lv_truelength : (((VECSEXP) (x))->vecsxp.truelength)) // XTRUELENGTH unused
#define acopy_string Rf_acopy_string                         // acopy_string used 10 times in splusTimeDate
#define addMissingVarsToNewEnv Rf_addMissingVarsToNewEnv     // addMissingVarsToNewEnv unused
#define alloc3DArray Rf_alloc3DArray                         // alloc3DArray used 21 times in mcmc, msm, TPmsm, unfoldr, RandomFields, cplm
#define allocArray Rf_allocArray                             // allocArray used 24 times in unfoldr, kergp, pomp, proxy, kza, slam, mvMORPH, TPmsm, ouch, RandomFields
#define allocFormalsList2 Rf_allocFormalsList2               // allocFormalsList2 unused
#define allocFormalsList3 Rf_allocFormalsList3               // allocFormalsList3 unused
#define allocFormalsList4 Rf_allocFormalsList4               // allocFormalsList4 unused
#define allocFormalsList5 Rf_allocFormalsList5               // allocFormalsList5 unused
#define allocFormalsList6 Rf_allocFormalsList6               // allocFormalsList6 unused
#define allocList Rf_allocList                               // allocList used 60 times in 25 packages
#define allocMatrix Rf_allocMatrix                           // allocMatrix used 1577 times in 244 packages
#define allocS4Object Rf_allocS4Object                       // allocS4Object used 1 times in arules
#define allocSExp Rf_allocSExp                               // allocSExp used 14 times in igraph, rgp, data.table, RandomFields, mmap, qtbase
#define allocVector Rf_allocVector                           // allocVector used 12419 times in 551 packages
#define allocVector3 Rf_allocVector3                         // allocVector3 unused
#define any_duplicated Rf_any_duplicated                     // any_duplicated used 5 times in data.table, checkmate
#define any_duplicated3 Rf_any_duplicated3                   // any_duplicated3 unused
#define applyClosure Rf_applyClosure                         // applyClosure unused
#define arraySubscript Rf_arraySubscript                     // arraySubscript used 13 times in proxy, arules, arulesSequences, cba, seriation
#define asChar Rf_asChar                                     // asChar used 194 times in 36 packages
#define asCharacterFactor Rf_asCharacterFactor               // asCharacterFactor used 11 times in fastmatch, Kmisc, data.table
#define asComplex Rf_asComplex                               // asComplex used 1 times in ff
#define asInteger Rf_asInteger                               // asInteger used 1277 times in 140 packages
#define asLogical Rf_asLogical                               // asLogical used 462 times in 64 packages
#define asReal Rf_asReal                                     // asReal used 383 times in 83 packages
#define asS4 Rf_asS4                                         // asS4 unused
#define cPsort Rf_cPsort                                     // cPsort unused
#define classgets Rf_classgets                               // classgets used 91 times in 30 packages
#define coerceVector Rf_coerceVector                         // coerceVector used 2585 times in 167 packages
#define conformable Rf_conformable                           // conformable used 141 times in 22 packages
#define cons Rf_cons                                         // cons used 609 times in 39 packages
#define copyListMatrix Rf_copyListMatrix                     // copyListMatrix used 1 times in Matrix
#define copyMatrix Rf_copyMatrix                             // copyMatrix used 7 times in BDgraph, Matrix, kza
#define copyMostAttrib Rf_copyMostAttrib                     // copyMostAttrib used 68 times in arules, robustbase, data.table, xts, memisc, proxy, zoo, tau
#define copyVector Rf_copyVector                             // copyVector used 12 times in tm, kza, mlegp, adaptivetau
#define countContexts Rf_countContexts                       // countContexts unused
#define defineVar Rf_defineVar                               // defineVar used 218 times in 38 packages
#define dimgets Rf_dimgets                                   // dimgets used 3 times in CorrBin
#define dimnamesgets Rf_dimnamesgets                         // dimnamesgets used 24 times in Matrix, RxCEcolInf, lxb, sapa
#define duplicate Rf_duplicate                               // duplicate used 2088 times in 224 packages
#define duplicated Rf_duplicated                             // duplicated used 402 times in 100 packages
#define elt Rf_elt                                           // elt used 2310 times in 37 packages
#define error Rf_error                                       // error used 63771 times in 1109 packages
#define error_return(msg) { Rf_error(msg); return R_NilValue; } // error_return used 100 times in rpg, RPostgreSQL, Rook, git2r, grr, rJava, rmumps
#define errorcall Rf_errorcall                               // errorcall used 103 times in RCurl, arules, XML, arulesSequences, pbdMPI, xts, proxy, cba, rJava, RSAP
#define errorcall_return(cl,msg) { Rf_errorcall(cl, msg); return R_NilValue; } // errorcall_return used 31 times in Runuran
#define eval Rf_eval                                         // eval used 25178 times in 269 packages
#define findFun Rf_findFun                                   // findFun used 13 times in sprint, tikzDevice, yaml, unfoldr, TraMineR, RGtk2
#define findVar Rf_findVar                                   // findVar used 1333 times in 24 packages
#define findVarInFrame Rf_findVarInFrame                     // findVarInFrame used 101 times in 13 packages
#define findVarInFrame3 Rf_findVarInFrame3                   // findVarInFrame3 used 5 times in datamap
#define getAttrib Rf_getAttrib                               // getAttrib used 1930 times in 239 packages
#define getCharCE Rf_getCharCE                               // getCharCE used 16 times in ore, RSclient, PythonInR, Rserve, jsonlite, tau, rJava
#define gsetVar Rf_gsetVar                                   // gsetVar used 4 times in RSVGTipsDevice, Cairo, RSvgDevice, JavaGD
#define iPsort Rf_iPsort                                     // iPsort used 3 times in matrixStats, robustbase
#define inherits Rf_inherits                                 // inherits used 814 times in 80 packages
#define install Rf_install                                   // install used 3178 times in 224 packages
#define installChar Rf_installChar                           // installChar used 4 times in dplyr
#define installDDVAL Rf_installDDVAL                         // installDDVAL unused
#define installS3Signature Rf_installS3Signature             // installS3Signature unused
#define isArray Rf_isArray                                   // isArray used 34 times in checkmate, PythonInR, data.table, ifultools, Rblpapi, Rvcg, unfoldr, TMB, kza, qtbase
#define isBasicClass Rf_isBasicClass                         // isBasicClass unused
#define isBlankString Rf_isBlankString                       // isBlankString used 1 times in iotools
#define isByteCode(x) (((x)->sxpinfo.type)==21)              // isByteCode unused
#define isComplex(s) (((s)->sxpinfo.type) == 15)             // isComplex used 119 times in checkmate, PythonInR, ifultools, Rblpapi, Rcpp11, rmatio, stringi, Matrix, qtbase
#define isEnvironment(s) (((s)->sxpinfo.type) == 4)          // isEnvironment used 113 times in 52 packages
#define isExpression(s) (((s)->sxpinfo.type) == 20)          // isExpression used 3 times in PythonInR, Rcpp11
#define isFactor Rf_isFactor                                 // isFactor used 42 times in checkmate, rggobi, PythonInR, data.table, Kmisc, partykit, cba, qtbase, RSQLite
#define isFrame Rf_isFrame                                   // isFrame used 15 times in checkmate, splusTimeDate, OjaNP, PythonInR, data.table, robfilter
#define isFree Rf_isFree                                     // isFree unused
#define isFunction Rf_isFunction                             // isFunction used 274 times in 43 packages
#define isInteger Rf_isInteger                               // isInteger used 402 times in 77 packages
#define isLanguage Rf_isLanguage                             // isLanguage used 63 times in PythonInR, rgp, RandomFields
#define isList Rf_isList                                     // isList used 40 times in 11 packages
#define isLogical(s) (((s)->sxpinfo.type) == 10)             // isLogical used 215 times in 53 packages
#define isMatrix Rf_isMatrix                                 // isMatrix used 293 times in 65 packages
#define isNewList Rf_isNewList                               // isNewList used 103 times in 27 packages
#define isNull(s) (((s)->sxpinfo.type) == 0)                 // isNull used 1915 times in 119 packages
#define isNumber Rf_isNumber                                 // isNumber used 14 times in PythonInR, readr, stringi, qtbase
#define isNumeric Rf_isNumeric                               // isNumeric used 468 times in 49 packages
#define isObject(s) (((s)->sxpinfo.obj) != 0)                // isObject used 11 times in dplyr, Rcpp, PythonInR, Rcpp11, stringi, rmumps
#define isOrdered Rf_isOrdered                               // isOrdered used 65 times in partykit, PythonInR, data.table, RSQLite
#define isPairList Rf_isPairList                             // isPairList used 2 times in PythonInR
#define isPrimitive Rf_isPrimitive                           // isPrimitive used 7 times in PythonInR, qtbase
#define isReal(s) (((s)->sxpinfo.type) == 14)                // isReal used 323 times in 64 packages
#define isS4 Rf_isS4                                         // isS4 used 13 times in PythonInR, Rcpp11, dplyr, Rcpp, catnet, rmumps, sdnet
#define isString(s) (((s)->sxpinfo.type) == 16)              // isString used 280 times in 59 packages
#define isSymbol(s) (((s)->sxpinfo.type) == 1)               // isSymbol used 68 times in PythonInR, data.table, Rcpp11, stringi, rgp, dbarts, rJava, sourcetools
#define isTs Rf_isTs                                         // isTs used 2 times in PythonInR
#define isUnordered Rf_isUnordered                           // isUnordered used 2 times in PythonInR
#define isUnsorted Rf_isUnsorted                             // isUnsorted unused
#define isUserBinop Rf_isUserBinop                           // isUserBinop used 2 times in PythonInR
#define isValidString Rf_isValidString                       // isValidString used 26 times in SSN, PythonInR, foreign, pbdMPI, RJSONIO, SASxport
#define isValidStringF Rf_isValidStringF                     // isValidStringF used 2 times in PythonInR
#define isVector Rf_isVector                                 // isVector used 182 times in 46 packages
#define isVectorAtomic Rf_isVectorAtomic                     // isVectorAtomic used 40 times in bit, matrixStats, checkmate, PythonInR, data.table, Matrix, bit64, potts, aster2, qtbase
#define isVectorList Rf_isVectorList                         // isVectorList used 12 times in RPostgreSQL, spsurvey, PythonInR, stringi, adaptivetau, PCICt, RandomFields
#define isVectorizable Rf_isVectorizable                     // isVectorizable used 3 times in PythonInR, robfilter
#define lang1 Rf_lang1                                       // lang1 used 30 times in 11 packages
#define lang2 Rf_lang2                                       // lang2 used 216 times in 75 packages
#define lang3 Rf_lang3                                       // lang3 used 107 times in 28 packages
#define lang4 Rf_lang4                                       // lang4 used 65 times in 21 packages
#define lang5 Rf_lang5                                       // lang5 used 11 times in PBSddesolve, GNE, SMC
#define lang6 Rf_lang6                                       // lang6 used 2 times in GNE
#define lastElt Rf_lastElt                                   // lastElt unused
#define lazy_duplicate Rf_lazy_duplicate                     // lazy_duplicate unused
#define lcons Rf_lcons                                       // lcons used 16 times in rmgarch
#define length(x) Rf_length(x)                               // length used 44060 times in 1224 packages
#define lengthgets Rf_lengthgets                             // lengthgets used 47 times in 11 packages
#define list1 Rf_list1                                       // list1 used 197 times in 11 packages
#define list2 Rf_list2                                       // list2 used 441 times in 12 packages
#define list3 Rf_list3                                       // list3 used 72 times in marked, Rdsdp, BH, svd
#define list4 Rf_list4                                       // list4 used 58 times in igraph, PBSddesolve, Rserve, BH, yaml, treethresh, SMC
#define list5 Rf_list5                                       // list5 used 63 times in Rdsdp, BH
#define listAppend Rf_listAppend                             // listAppend used 1 times in ore
#define match Rf_match                                       // match used 8773 times in 388 packages
#define matchE Rf_matchE                                     // matchE unused
#define mkChar Rf_mkChar                                     // mkChar used 4545 times in 287 packages
#define mkCharCE Rf_mkCharCE                                 // mkCharCE used 72 times in 15 packages
#define mkCharLen Rf_mkCharLen                               // mkCharLen used 38 times in 16 packages
#define mkCharLenCE Rf_mkCharLenCE                           // mkCharLenCE used 23 times in 11 packages
#define mkNamed Rf_mkNamed                                   // mkNamed used 12 times in RCassandra, coxme, SamplerCompare, survival, JavaGD, DEoptim, qtbase
#define mkString Rf_mkString                                 // mkString used 814 times in 96 packages
#define namesgets Rf_namesgets                               // namesgets used 80 times in 14 packages
#define ncols Rf_ncols                                       // ncols used 3805 times in 182 packages
#define nlevels Rf_nlevels                                   // nlevels used 546 times in 26 packages
#define nrows Rf_nrows                                       // nrows used 4332 times in 215 packages
#define nthcdr Rf_nthcdr                                     // nthcdr used 9 times in sprint, rmongodb, PythonInR, xts
#define pmatch Rf_pmatch                                     // pmatch used 169 times in ore, git2r, AdaptFitOS, data.table, seqminer, locfit, oce, rmumps
#define protect Rf_protect                                   // protect used 599 times in 101 packages
#define psmatch Rf_psmatch                                   // psmatch used 5 times in rgl
#define rPsort Rf_rPsort                                     // rPsort used 63 times in 15 packages
#define reEnc Rf_reEnc                                       // reEnc used 3 times in PythonInR, RJSONIO
#define readS3VarsFromFrame Rf_readS3VarsFromFrame           // readS3VarsFromFrame unused
#define revsort Rf_revsort                                   // revsort used 60 times in 20 packages
#define rownamesgets Rf_rownamesgets                         // rownamesgets unused
#define setAttrib Rf_setAttrib                               // setAttrib used 1830 times in 251 packages
#define setIVector Rf_setIVector                             // setIVector unused
#define setRVector Rf_setRVector                             // setRVector used 3 times in RcppClassic, RcppClassicExamples
#define setSVector Rf_setSVector                             // setSVector unused
#define setVar Rf_setVar                                     // setVar used 24 times in Rhpc, rscproxy, PythonInR, rgenoud, survival, gsl, littler, spatstat
#define shallow_duplicate Rf_shallow_duplicate               // shallow_duplicate used 2 times in tmlenet, smint
#define str2type Rf_str2type                                 // str2type used 1 times in RGtk2
#define stringPositionTr Rf_stringPositionTr                 // stringPositionTr unused
#define stringSuffix Rf_stringSuffix                         // stringSuffix unused
#define substitute Rf_substitute                             // substitute used 255 times in 56 packages
#define topenv Rf_topenv                                     // topenv unused
#define translateChar Rf_translateChar                       // translateChar used 59 times in 19 packages
#define translateChar0 Rf_translateChar0                     // translateChar0 unused
#define translateCharUTF8 Rf_translateCharUTF8               // translateCharUTF8 used 66 times in 13 packages
#define type2char Rf_type2char                               // type2char used 107 times in 12 packages
#define type2rstr Rf_type2rstr                               // type2rstr unused
#define type2str Rf_type2str                                 // type2str used 3 times in Kmisc, yaml
#define type2str_nowarn Rf_type2str_nowarn                   // type2str_nowarn used 1 times in qrmtools
#define unprotect Rf_unprotect                               // unprotect used 110 times in 35 packages
#define unprotect_ptr Rf_unprotect_ptr                       // unprotect_ptr unused
#define warning Rf_warning                                   // warning used 7679 times in 434 packages
#define warningcall Rf_warningcall                           // warningcall used 4 times in RInside, jsonlite, pbdMPI
#define warningcall_immediate Rf_warningcall_immediate       // warningcall_immediate used 2 times in Runuran
#define xlength(x) Rf_xlength(x)                             // xlength used 186 times in stringdist, yuima, matrixStats, Rhpc, validate, checkmate, dplR, Rdsdp, pscl, DescTools
#define xlengthgets Rf_xlengthgets                           // xlengthgets unused
# /Users/ls/Source/git/fastr/com.oracle.truffle.r.native/include/R_ext/Arith.h
extern "C" {
extern double R_NaN;                                         // R_NaN used 469 times in 68 packages
extern double R_PosInf;                                      // R_PosInf used 562 times in 112 packages
extern double R_NegInf;                                      // R_NegInf used 699 times in 105 packages
extern double R_NaReal;                                      // R_NaReal used 140 times in 34 packages
                                                             // NA_REAL used 1667 times in 226 packages
extern int R_NaInt;                                          // R_NaInt used 58 times in 20 packages
                                                             // NA_INTEGER used 1520 times in 183 packages
                                                             // NA_LOGICAL used 355 times in 73 packages
int R_IsNA(double);                                          // R_IsNA used 161 times in 40 packages
int R_IsNaN(double);                                         // R_IsNaN used 75 times in 28 packages
int R_finite(double);                                        // R_finite used 232 times in 44 packages
  int R_isnancpp(double);                                    // R_isnancpp used 8 times in igraph, PwrGSD
}

# /Users/ls/Source/git/fastr/com.oracle.truffle.r.native/include/R_ext/Boolean.h
extern "C" {
typedef enum { FALSE = 0, TRUE } Rboolean;
}

# /Users/ls/Source/git/fastr/com.oracle.truffle.r.native/include/R_ext/Complex.h
extern "C" {
typedef struct {
 double r;
 double i;
} Rcomplex;                                                  // Rcomplex used 893 times in 47 packages
}

# /Users/ls/Source/git/fastr/com.oracle.truffle.r.native/include/R_ext/Error.h
extern "C" {
void __attribute__((noreturn)) Rf_error(const char *, ...);
void __attribute__((noreturn)) UNIMPLEMENTED(const char *);
void __attribute__((noreturn)) WrongArgCount(const char *);
void Rf_warning(const char *, ...);                          // Rf_warning used 316 times in 66 packages
                                                             // warning used 7679 times in 434 packages
void R_ShowMessage(const char *s);                           // R_ShowMessage used 104 times in Rserve, rJava, HiPLARM
}

# /Users/ls/Source/git/fastr/com.oracle.truffle.r.native/include/R_ext/Memory.h
extern "C" {
void* vmaxget(void);                                         // vmaxget used 279 times in 20 packages
void vmaxset(const void *);                                  // vmaxset used 279 times in 20 packages
void R_gc(void);                                             // R_gc used 6 times in TMB, excel.link, gmatrix, microbenchmark
int R_gc_running();                                          // R_gc_running unused
char* R_alloc(size_t, int);                                  // R_alloc used 7787 times in 330 packages
long double *R_allocLD(size_t nelem);
char* S_alloc(long, int);                                    // S_alloc used 540 times in 50 packages
char* S_realloc(char *, long, long, int);                    // S_realloc used 55 times in 11 packages
}

# /Users/ls/Source/git/fastr/com.oracle.truffle.r.native/include/R_ext/Print.h
extern "C" {
void Rprintf(const char *, ...);                             // Rprintf used 33813 times in 729 packages
void REprintf(const char *, ...);                            // REprintf used 2531 times in 135 packages
}

# /Users/ls/Source/git/fastr/com.oracle.truffle.r.native/include/R_ext/Utils.h
extern "C" {
void R_isort(int*, int);                                     // R_isort used 45 times in 18 packages
void R_rsort(double*, int);                                  // R_rsort used 210 times in 29 packages
void R_csort(Rcomplex*, int);                                // R_csort unused
void rsort_with_index(double *, int *, int);                 // rsort_with_index used 77 times in 40 packages
void Rf_revsort(double*, int*, int);                         // Rf_revsort unused
                                                             // revsort used 60 times in 20 packages
void Rf_iPsort(int*, int, int);                              // Rf_iPsort unused
                                                             // iPsort used 3 times in matrixStats, robustbase
void Rf_rPsort(double*, int, int);                           // Rf_rPsort unused
                                                             // rPsort used 63 times in 15 packages
void Rf_cPsort(Rcomplex*, int, int);                         // Rf_cPsort unused
                                                             // cPsort unused
void R_qsort (double *v, size_t i, size_t j);                // R_qsort used 10 times in extWeibQuant, pomp, robustbase, dplR, tclust, pcaPP
void R_qsort_I (double *v, int *II, int i, int j);           // R_qsort_I used 33 times in 15 packages
void R_qsort_int (int *iv, size_t i, size_t j);              // R_qsort_int unused
void R_qsort_int_I(int *iv, int *II, int i, int j);          // R_qsort_int_I used 19 times in ff, matrixStats, arules, Rborist, slam, eco, bnlearn
const char *R_ExpandFileName(const char *);                  // R_ExpandFileName used 42 times in 20 packages
void Rf_setIVector(int*, int, int);                          // Rf_setIVector unused
                                                             // setIVector unused
void Rf_setRVector(double*, int, double);                    // Rf_setRVector unused
                                                             // setRVector used 3 times in RcppClassic, RcppClassicExamples
Rboolean Rf_StringFalse(const char *);                       // Rf_StringFalse unused
                                                             // StringFalse used 3 times in iotools
Rboolean Rf_StringTrue(const char *);                        // Rf_StringTrue unused
                                                             // StringTrue used 3 times in iotools
Rboolean Rf_isBlankString(const char *);                     // Rf_isBlankString unused
                                                             // isBlankString used 1 times in iotools
double R_atof(const char *str);                              // R_atof used 9 times in SSN, tree, foreign, iotools
double R_strtod(const char *c, char **end);                  // R_strtod used 4 times in ape, iotools
char *R_tmpnam(const char *prefix, const char *tempdir);     // R_tmpnam used 2 times in geometry
char *R_tmpnam2(const char *prefix, const char *tempdir, const char *fileext); // R_tmpnam2 unused
void R_CheckUserInterrupt(void);                             // R_CheckUserInterrupt used 1487 times in 234 packages
void R_CheckStack(void);                                     // R_CheckStack used 115 times in vcrpart, actuar, cplm, lme4, Matrix, GNE, randtoolbox, HiPLARM, rngWELL, pedigreemm
void R_CheckStack2(size_t);                                  // R_CheckStack2 unused
int findInterval(double *xt, int n, double x,                // findInterval used 11 times in BSquare, DNAprofiles, unfoldr, chebpol, pomp, eco, protViz, PBSmapping, spatstat
   Rboolean rightmost_closed, Rboolean all_inside, int ilo,
   int *mflag);
void find_interv_vec(double *xt, int *n, double *x, int *nx, // find_interv_vec unused
       int *rightmost_closed, int *all_inside, int *indx);
void R_max_col(double *matrix, int *nr, int *nc, int *maxes, int *ties_meth); // R_max_col used 2 times in geostatsp, MNP
}

# /Users/ls/Source/git/fastr/com.oracle.truffle.r.native/include/Rinternals.h
extern "C" {
typedef unsigned char Rbyte;
typedef int R_len_t;                                         // R_len_t used 2397 times in 70 packages
    typedef ptrdiff_t R_xlen_t;                              // R_xlen_t used 1537 times in 32 packages
    typedef struct { R_xlen_t lv_length, lv_truelength; } R_long_vec_hdr_t;
typedef unsigned int SEXPTYPE;
struct sxpinfo_struct {
    SEXPTYPE type : 5;
    unsigned int obj : 1;
    unsigned int named : 2;
    unsigned int gp : 16;
    unsigned int mark : 1;
    unsigned int debug : 1;
    unsigned int trace : 1;
    unsigned int spare : 1;
    unsigned int gcgen : 1;
    unsigned int gccls : 3;
};
struct vecsxp_struct {
    R_len_t length;
    R_len_t truelength;
};
struct primsxp_struct {
    int offset;
};
struct symsxp_struct {
    struct SEXPREC *pname;
    struct SEXPREC *value;
    struct SEXPREC *internal;
};
struct listsxp_struct {
    struct SEXPREC *carval;
    struct SEXPREC *cdrval;
    struct SEXPREC *tagval;
};
struct envsxp_struct {
    struct SEXPREC *frame;
    struct SEXPREC *enclos;
    struct SEXPREC *hashtab;
};
struct closxp_struct {
    struct SEXPREC *formals;
    struct SEXPREC *body;
    struct SEXPREC *env;
};
struct promsxp_struct {
    struct SEXPREC *value;
    struct SEXPREC *expr;
    struct SEXPREC *env;
};
typedef struct SEXPREC {
    struct sxpinfo_struct sxpinfo; struct SEXPREC *attrib; struct SEXPREC *gengc_next_node, *gengc_prev_node;
    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;                                                     // u unused
} SEXPREC, *SEXP;
typedef struct VECTOR_SEXPREC {
    struct sxpinfo_struct sxpinfo; struct SEXPREC *attrib; struct SEXPREC *gengc_next_node, *gengc_prev_node;
    struct vecsxp_struct vecsxp;
} VECTOR_SEXPREC, *VECSEXP;
typedef union { VECTOR_SEXPREC s; double align; } SEXPREC_ALIGN;
    R_len_t __attribute__((noreturn)) R_BadLongVector(SEXP, const char *, int);
SEXP (ATTRIB)(SEXP x);                                       // ATTRIB used 83 times in 20 packages
int (OBJECT)(SEXP x);                                        // OBJECT used 102 times in 28 packages
int (MARK)(SEXP x);                                          // MARK used 251 times in 21 packages
int (TYPEOF)(SEXP x);                                        // TYPEOF used 2832 times in 195 packages
int (NAMED)(SEXP x);                                         // NAMED used 62 times in 22 packages
int (REFCNT)(SEXP x);                                        // REFCNT unused
void (SET_OBJECT)(SEXP x, int v);                            // SET_OBJECT used 32 times in RSclient, reshape2, Rserve, data.table, actuar, dplyr, proxy, rmongodb, slam, tau
void (SET_TYPEOF)(SEXP x, int v);                            // SET_TYPEOF used 38 times in 21 packages
void (SET_NAMED)(SEXP x, int v);                             // SET_NAMED used 10 times in dplyr, yaml, data.table, iotools, RSQLite
void SET_ATTRIB(SEXP x, SEXP v);                             // SET_ATTRIB used 54 times in 18 packages
void DUPLICATE_ATTRIB(SEXP to, SEXP from);                   // DUPLICATE_ATTRIB used 5 times in covr, lfe, testthat, data.table
int (IS_S4_OBJECT)(SEXP x);                                  // IS_S4_OBJECT used 23 times in Rmosek, Runuran, data.table, xts, Matrix, slam, zoo, HiPLARM, OpenMx, tau
void (SET_S4_OBJECT)(SEXP x);                                // SET_S4_OBJECT used 12 times in RSclient, redland, Rserve, data.table, FREGAT, rJPSGCS, tau
void (UNSET_S4_OBJECT)(SEXP x);                              // UNSET_S4_OBJECT used 2 times in data.table, slam
int (LENGTH)(SEXP x);                                        // LENGTH used 5845 times in 356 packages
int (TRUELENGTH)(SEXP x);                                    // TRUELENGTH used 37 times in data.table
void (SETLENGTH)(SEXP x, int v);                             // SETLENGTH used 65 times in 11 packages
void (SET_TRUELENGTH)(SEXP x, int v);                        // SET_TRUELENGTH used 26 times in data.table
R_xlen_t (XLENGTH)(SEXP x);                                  // XLENGTH used 287 times in 21 packages
R_xlen_t (XTRUELENGTH)(SEXP x);                              // XTRUELENGTH unused
int (IS_LONG_VEC)(SEXP x);                                   // IS_LONG_VEC used 1 times in RProtoBuf
int (LEVELS)(SEXP x);                                        // LEVELS used 18 times in rtdists, rPref, BsMD, data.table, stringi, dplyr, OBsMD, pbdZMQ, astrochron, RandomFields
int (SETLEVELS)(SEXP x, int v);                              // SETLEVELS used 2 times in Rcpp11
int *(LOGICAL)(SEXP x);                                      // LOGICAL used 4473 times in 288 packages
int *(INTEGER)(SEXP x);                                      // INTEGER used 41659 times in 758 packages
Rbyte *(RAW)(SEXP x);                                        // RAW used 880 times in 99 packages
double *(REAL)(SEXP x);                                      // REAL used 30947 times in 687 packages
Rcomplex *(COMPLEX)(SEXP x);                                 // COMPLEX used 1697 times in 71 packages
SEXP (STRING_ELT)(SEXP x, R_xlen_t i);                       // STRING_ELT used 4143 times in 333 packages
SEXP (VECTOR_ELT)(SEXP x, R_xlen_t i);                       // VECTOR_ELT used 8626 times in 291 packages
void SET_STRING_ELT(SEXP x, R_xlen_t i, SEXP v);             // SET_STRING_ELT used 5834 times in 321 packages
SEXP SET_VECTOR_ELT(SEXP x, R_xlen_t i, SEXP v);             // SET_VECTOR_ELT used 9751 times in 391 packages
SEXP *(STRING_PTR)(SEXP x);                                  // STRING_PTR used 65 times in 14 packages
SEXP * __attribute__((noreturn)) (VECTOR_PTR)(SEXP x);
SEXP (TAG)(SEXP e);                                          // TAG used 513 times in 40 packages
SEXP (CAR)(SEXP e);                                          // CAR used 575 times in 63 packages
SEXP (CDR)(SEXP e);                                          // CDR used 4523 times in 76 packages
SEXP (CAAR)(SEXP e);                                         // CAAR unused
SEXP (CDAR)(SEXP e);                                         // CDAR unused
SEXP (CADR)(SEXP e);                                         // CADR used 104 times in 17 packages
SEXP (CDDR)(SEXP e);                                         // CDDR used 52 times in Rlabkey, Rcpp11, dplyr, proxy, Rcpp, slam, tikzDevice, OpenCL, svd
SEXP (CDDDR)(SEXP e);                                        // CDDDR unused
SEXP (CADDR)(SEXP e);                                        // CADDR used 52 times in 11 packages
SEXP (CADDDR)(SEXP e);                                       // CADDDR used 21 times in RPostgreSQL, foreign, actuar, bibtex
SEXP (CAD4R)(SEXP e);                                        // CAD4R used 14 times in earth, foreign, actuar
int (MISSING)(SEXP x);                                       // MISSING used 125 times in 25 packages
void (SET_MISSING)(SEXP x, int v);                           // SET_MISSING used 1 times in sprint
void SET_TAG(SEXP x, SEXP y);                                // SET_TAG used 200 times in 34 packages
SEXP SETCAR(SEXP x, SEXP y);                                 // SETCAR used 4072 times in 47 packages
SEXP SETCDR(SEXP x, SEXP y);                                 // SETCDR used 46 times in 14 packages
SEXP SETCADR(SEXP x, SEXP y);                                // SETCADR used 112 times in 37 packages
SEXP SETCADDR(SEXP x, SEXP y);                               // SETCADDR used 45 times in 14 packages
SEXP SETCADDDR(SEXP x, SEXP y);                              // SETCADDDR used 31 times in 12 packages
SEXP SETCAD4R(SEXP e, SEXP y);                               // SETCAD4R used 15 times in kergp, Sim.DiffProc, tikzDevice
SEXP CONS_NR(SEXP a, SEXP b);                                // CONS_NR unused
SEXP (FORMALS)(SEXP x);                                      // FORMALS used 15 times in qtpaint, RSclient, PBSddesolve, Rserve, covr, pryr, rgp, testthat, RandomFields
SEXP (BODY)(SEXP x);                                         // BODY used 48 times in 15 packages
SEXP (CLOENV)(SEXP x);                                       // CLOENV used 23 times in Rcpp11, covr, pomp, Rcpp, pryr, testthat, qtbase
int (RDEBUG)(SEXP x);                                        // RDEBUG used 69 times in rmetasim
int (RSTEP)(SEXP x);                                         // RSTEP unused
int (RTRACE)(SEXP x);                                        // RTRACE unused
void (SET_RDEBUG)(SEXP x, int v);                            // SET_RDEBUG unused
void (SET_RSTEP)(SEXP x, int v);                             // SET_RSTEP unused
void (SET_RTRACE)(SEXP x, int v);                            // SET_RTRACE unused
void SET_FORMALS(SEXP x, SEXP v);                            // SET_FORMALS used 5 times in covr, rgp, testthat, qtbase
void SET_BODY(SEXP x, SEXP v);                               // SET_BODY used 6 times in covr, rgp, testthat, qtbase
void SET_CLOENV(SEXP x, SEXP v);                             // SET_CLOENV used 6 times in covr, rgp, testthat, qtbase
SEXP (PRINTNAME)(SEXP x);                                    // PRINTNAME used 92 times in 29 packages
SEXP (SYMVALUE)(SEXP x);                                     // SYMVALUE unused
SEXP (INTERNAL)(SEXP x);                                     // INTERNAL used 1014 times in 63 packages
int (DDVAL)(SEXP x);                                         // DDVAL unused
void (SET_DDVAL)(SEXP x, int v);                             // SET_DDVAL unused
void SET_PRINTNAME(SEXP x, SEXP v);                          // SET_PRINTNAME unused
void SET_SYMVALUE(SEXP x, SEXP v);                           // SET_SYMVALUE unused
void SET_INTERNAL(SEXP x, SEXP v);                           // SET_INTERNAL unused
SEXP (FRAME)(SEXP x);                                        // FRAME used 19 times in deTestSet, IRISSeismic, pryr, BayesBridge, datamap, BayesLogit
SEXP (ENCLOS)(SEXP x);                                       // ENCLOS used 7 times in Rcpp, pryr, rJava, Rcpp11, RGtk2
SEXP (HASHTAB)(SEXP x);                                      // HASHTAB used 12 times in Rcpp, pryr, datamap, Rcpp11, qtbase
int (ENVFLAGS)(SEXP x);                                      // ENVFLAGS unused
void (SET_ENVFLAGS)(SEXP x, int v);                          // SET_ENVFLAGS unused
void SET_FRAME(SEXP x, SEXP v);                              // SET_FRAME used 4 times in rgp, mmap, qtbase
void SET_ENCLOS(SEXP x, SEXP v);                             // SET_ENCLOS used 7 times in rgp, RandomFields, mmap, qtbase
void SET_HASHTAB(SEXP x, SEXP v);                            // SET_HASHTAB used 5 times in rgp, mmap, qtbase
SEXP (PRCODE)(SEXP x);                                       // PRCODE used 15 times in dplyr, Rcpp, pryr, Rcpp11
SEXP (PRENV)(SEXP x);                                        // PRENV used 14 times in igraph, dplyr, Rcpp, pryr, Rcpp11, lazyeval
SEXP (PRVALUE)(SEXP x);                                      // PRVALUE used 12 times in dplyr, Rcpp, pryr, Rcpp11
int (PRSEEN)(SEXP x);                                        // PRSEEN used 4 times in Rcpp, Rcpp11
void (SET_PRSEEN)(SEXP x, int v);                            // SET_PRSEEN unused
void SET_PRENV(SEXP x, SEXP v);                              // SET_PRENV unused
void SET_PRVALUE(SEXP x, SEXP v);                            // SET_PRVALUE unused
void SET_PRCODE(SEXP x, SEXP v);                             // SET_PRCODE unused
void SET_PRSEEN(SEXP x, int v);                              // SET_PRSEEN unused
int (HASHASH)(SEXP x);                                       // HASHASH unused
int (HASHVALUE)(SEXP x);                                     // HASHVALUE unused
void (SET_HASHASH)(SEXP x, int v);                           // SET_HASHASH unused
void (SET_HASHVALUE)(SEXP x, int v);                         // SET_HASHVALUE unused
typedef int PROTECT_INDEX;                                   // PROTECT_INDEX used 94 times in 27 packages
extern SEXP R_GlobalEnv;                                     // R_GlobalEnv used 1400 times in 79 packages
extern SEXP R_EmptyEnv;                                      // R_EmptyEnv used 16 times in Rserve, dplR, Rcpp11, Rcpp, RcppClassic, pryr, rJava, adaptivetau, qtbase
extern SEXP R_BaseEnv;                                       // R_BaseEnv used 27 times in 15 packages
extern SEXP R_BaseNamespace;                                 // R_BaseNamespace used 3 times in Rcpp, Rcpp11
extern SEXP R_NamespaceRegistry;                             // R_NamespaceRegistry used 3 times in devtools, namespace, Rcpp
extern SEXP R_Srcref;                                        // R_Srcref unused
extern SEXP R_NilValue;                                      // R_NilValue used 10178 times in 491 packages
extern SEXP R_UnboundValue;                                  // R_UnboundValue used 73 times in 23 packages
extern SEXP R_MissingArg;                                    // R_MissingArg used 21 times in 12 packages
extern
SEXP R_RestartToken;                                         // R_RestartToken unused
extern SEXP R_baseSymbol;                                    // R_baseSymbol unused
extern SEXP R_BaseSymbol;                                    // R_BaseSymbol unused
extern SEXP R_BraceSymbol;                                   // R_BraceSymbol unused
extern SEXP R_Bracket2Symbol;                                // R_Bracket2Symbol used 4 times in purrr
extern SEXP R_BracketSymbol;                                 // R_BracketSymbol unused
extern SEXP R_ClassSymbol;                                   // R_ClassSymbol used 311 times in 84 packages
extern SEXP R_DeviceSymbol;                                  // R_DeviceSymbol unused
extern SEXP R_DimNamesSymbol;                                // R_DimNamesSymbol used 230 times in 51 packages
extern SEXP R_DimSymbol;                                     // R_DimSymbol used 1015 times in 170 packages
extern SEXP R_DollarSymbol;                                  // R_DollarSymbol used 6 times in dplyr, Rcpp, Rcpp11
extern SEXP R_DotsSymbol;                                    // R_DotsSymbol used 13 times in RPostgreSQL, RcppDE, lbfgs, purrr, RMySQL, DEoptim, qtbase
extern SEXP R_DoubleColonSymbol;                             // R_DoubleColonSymbol unused
extern SEXP R_DropSymbol;                                    // R_DropSymbol unused
extern SEXP R_LastvalueSymbol;                               // R_LastvalueSymbol unused
extern SEXP R_LevelsSymbol;                                  // R_LevelsSymbol used 51 times in 17 packages
extern SEXP R_ModeSymbol;                                    // R_ModeSymbol unused
extern SEXP R_NaRmSymbol;                                    // R_NaRmSymbol used 2 times in dplyr
extern SEXP R_NameSymbol;                                    // R_NameSymbol used 2 times in qtbase
extern SEXP R_NamesSymbol;                                   // R_NamesSymbol used 1373 times in 249 packages
extern SEXP R_NamespaceEnvSymbol;                            // R_NamespaceEnvSymbol unused
extern SEXP R_PackageSymbol;                                 // R_PackageSymbol used 2 times in Rmosek, HiPLARM
extern SEXP R_PreviousSymbol;                                // R_PreviousSymbol unused
extern SEXP R_QuoteSymbol;                                   // R_QuoteSymbol unused
extern SEXP R_RowNamesSymbol;                                // R_RowNamesSymbol used 97 times in 37 packages
extern SEXP R_SeedsSymbol;                                   // R_SeedsSymbol used 2 times in treatSens
extern SEXP R_SortListSymbol;                                // R_SortListSymbol unused
extern SEXP R_SourceSymbol;                                  // R_SourceSymbol unused
extern SEXP R_SpecSymbol;                                    // R_SpecSymbol unused
extern SEXP R_TripleColonSymbol;                             // R_TripleColonSymbol unused
extern SEXP R_TspSymbol;                                     // R_TspSymbol unused
extern SEXP R_dot_defined;                                   // R_dot_defined unused
extern SEXP R_dot_Method;                                    // R_dot_Method unused
extern SEXP R_dot_packageName;                               // R_dot_packageName unused
extern SEXP R_dot_target;                                    // R_dot_target unused
extern SEXP R_NaString;                                      // R_NaString used 36 times in stringdist, RCurl, RSclient, uniqueAtomMat, XML, Rserve, Rblpapi, SoundexBR, rJava, iotools
                                                             // NA_STRING used 574 times in 90 packages
extern SEXP R_BlankString;                                   // R_BlankString used 39 times in 13 packages
extern SEXP R_BlankScalarString;                             // R_BlankScalarString unused
SEXP R_GetCurrentSrcref(int);                                // R_GetCurrentSrcref unused
SEXP R_GetSrcFilename(SEXP);                                 // R_GetSrcFilename unused
SEXP Rf_asChar(SEXP);                                        // Rf_asChar used 246 times in 16 packages
                                                             // asChar used 194 times in 36 packages
SEXP Rf_coerceVector(SEXP, SEXPTYPE);                        // Rf_coerceVector used 44 times in 13 packages
                                                             // coerceVector used 2585 times in 167 packages
SEXP Rf_PairToVectorList(SEXP x);                            // Rf_PairToVectorList unused
                                                             // PairToVectorList used 7 times in cba, rcdd
SEXP Rf_VectorToPairList(SEXP x);                            // Rf_VectorToPairList unused
                                                             // VectorToPairList used 13 times in pomp, arules
SEXP Rf_asCharacterFactor(SEXP x);                           // Rf_asCharacterFactor used 3 times in tidyr, reshape2, RSQLite
                                                             // asCharacterFactor used 11 times in fastmatch, Kmisc, data.table
int Rf_asLogical(SEXP x);                                    // Rf_asLogical used 45 times in 11 packages
                                                             // asLogical used 462 times in 64 packages
int Rf_asInteger(SEXP x);                                    // Rf_asInteger used 746 times in 23 packages
                                                             // asInteger used 1277 times in 140 packages
double Rf_asReal(SEXP x);                                    // Rf_asReal used 113 times in 17 packages
                                                             // asReal used 383 times in 83 packages
Rcomplex Rf_asComplex(SEXP x);                               // Rf_asComplex unused
                                                             // asComplex used 1 times in ff
typedef struct R_allocator R_allocator_t;
char * Rf_acopy_string(const char *);                        // Rf_acopy_string unused
                                                             // acopy_string used 10 times in splusTimeDate
void Rf_addMissingVarsToNewEnv(SEXP, SEXP);                  // Rf_addMissingVarsToNewEnv unused
                                                             // addMissingVarsToNewEnv unused
SEXP Rf_alloc3DArray(SEXPTYPE, int, int, int);               // Rf_alloc3DArray unused
                                                             // alloc3DArray used 21 times in mcmc, msm, TPmsm, unfoldr, RandomFields, cplm
SEXP Rf_allocArray(SEXPTYPE, SEXP);                          // Rf_allocArray used 4 times in h5
                                                             // allocArray used 24 times in unfoldr, kergp, pomp, proxy, kza, slam, mvMORPH, TPmsm, ouch, RandomFields
SEXP Rf_allocFormalsList2(SEXP sym1, SEXP sym2);             // Rf_allocFormalsList2 unused
                                                             // allocFormalsList2 unused
SEXP Rf_allocFormalsList3(SEXP sym1, SEXP sym2, SEXP sym3);  // Rf_allocFormalsList3 unused
                                                             // allocFormalsList3 unused
SEXP Rf_allocFormalsList4(SEXP sym1, SEXP sym2, SEXP sym3, SEXP sym4); // Rf_allocFormalsList4 unused
                                                             // allocFormalsList4 unused
SEXP Rf_allocFormalsList5(SEXP sym1, SEXP sym2, SEXP sym3, SEXP sym4, SEXP sym5); // Rf_allocFormalsList5 unused
                                                             // allocFormalsList5 unused
SEXP Rf_allocFormalsList6(SEXP sym1, SEXP sym2, SEXP sym3, SEXP sym4, SEXP sym5, SEXP sym6); // Rf_allocFormalsList6 unused
                                                             // allocFormalsList6 unused
SEXP Rf_allocMatrix(SEXPTYPE, int, int);                     // Rf_allocMatrix used 122 times in 14 packages
                                                             // allocMatrix used 1577 times in 244 packages
SEXP Rf_allocList(int);                                      // Rf_allocList unused
                                                             // allocList used 60 times in 25 packages
SEXP Rf_allocS4Object(void);                                 // Rf_allocS4Object used 2 times in Rserve, RSclient
                                                             // allocS4Object used 1 times in arules
SEXP Rf_allocSExp(SEXPTYPE);                                 // Rf_allocSExp unused
                                                             // allocSExp used 14 times in igraph, rgp, data.table, RandomFields, mmap, qtbase
SEXP Rf_allocVector3(SEXPTYPE, R_xlen_t, R_allocator_t*);    // Rf_allocVector3 unused
                                                             // allocVector3 unused
R_xlen_t Rf_any_duplicated(SEXP x, Rboolean from_last);      // Rf_any_duplicated unused
                                                             // any_duplicated used 5 times in data.table, checkmate
R_xlen_t Rf_any_duplicated3(SEXP x, SEXP incomp, Rboolean from_last); // Rf_any_duplicated3 unused
                                                             // any_duplicated3 unused
SEXP Rf_applyClosure(SEXP, SEXP, SEXP, SEXP, SEXP);          // Rf_applyClosure unused
                                                             // applyClosure unused
SEXP Rf_arraySubscript(int, SEXP, SEXP, SEXP (*)(SEXP,SEXP),
                       SEXP (*)(SEXP, int), SEXP);
SEXP Rf_classgets(SEXP, SEXP);                               // Rf_classgets used 27 times in fts, clpAPI, cplexAPI, sybilSBML, Rblpapi, glpkAPI
                                                             // classgets used 91 times in 30 packages
SEXP Rf_cons(SEXP, SEXP);                                    // Rf_cons used 39 times in dplyr, Rcpp, Rcpp11
                                                             // cons used 609 times in 39 packages
void Rf_copyMatrix(SEXP, SEXP, Rboolean);                    // Rf_copyMatrix used 8 times in CNVassoc
                                                             // copyMatrix used 7 times in BDgraph, Matrix, kza
void Rf_copyListMatrix(SEXP, SEXP, Rboolean);                // Rf_copyListMatrix unused
                                                             // copyListMatrix used 1 times in Matrix
void Rf_copyMostAttrib(SEXP, SEXP);                          // Rf_copyMostAttrib used 8 times in tidyr, purrr, Rcpp, reshape2
                                                             // copyMostAttrib used 68 times in arules, robustbase, data.table, xts, memisc, proxy, zoo, tau
void Rf_copyVector(SEXP, SEXP);                              // Rf_copyVector unused
                                                             // copyVector used 12 times in tm, kza, mlegp, adaptivetau
int Rf_countContexts(int, int);                              // Rf_countContexts unused
                                                             // countContexts unused
SEXP Rf_CreateTag(SEXP);                                     // Rf_CreateTag unused
                                                             // CreateTag used 1 times in rgp
void Rf_defineVar(SEXP, SEXP, SEXP);                         // Rf_defineVar used 7 times in purrr, Rcpp, Rserve, Rcpp11
                                                             // defineVar used 218 times in 38 packages
SEXP Rf_dimgets(SEXP, SEXP);                                 // Rf_dimgets unused
                                                             // dimgets used 3 times in CorrBin
SEXP Rf_dimnamesgets(SEXP, SEXP);                            // Rf_dimnamesgets unused
                                                             // dimnamesgets used 24 times in Matrix, RxCEcolInf, lxb, sapa
SEXP Rf_DropDims(SEXP);                                      // Rf_DropDims unused
                                                             // DropDims unused
SEXP Rf_duplicate(SEXP);                                     // Rf_duplicate used 21 times in XML, data.table, Rcpp11, lme4, dplyr, Rcpp, RcppClassic, grr, NMF, copula
                                                             // duplicate used 2088 times in 224 packages
SEXP Rf_shallow_duplicate(SEXP);                             // Rf_shallow_duplicate unused
                                                             // shallow_duplicate used 2 times in tmlenet, smint
SEXP Rf_lazy_duplicate(SEXP);                                // Rf_lazy_duplicate unused
                                                             // lazy_duplicate unused
SEXP Rf_duplicated(SEXP, Rboolean);                          // Rf_duplicated unused
                                                             // duplicated used 402 times in 100 packages
Rboolean R_envHasNoSpecialSymbols(SEXP);                     // R_envHasNoSpecialSymbols unused
SEXP Rf_eval(SEXP, SEXP);                                    // Rf_eval used 105 times in 24 packages
                                                             // eval used 25178 times in 269 packages
SEXP Rf_findFun(SEXP, SEXP);                                 // Rf_findFun used 7 times in Rcpp, Rcpp11, littler, RGtk2
                                                             // findFun used 13 times in sprint, tikzDevice, yaml, unfoldr, TraMineR, RGtk2
SEXP Rf_findVar(SEXP, SEXP);                                 // Rf_findVar used 19 times in R2SWF, Rcpp11, dplyr, Rcpp, pryr, rJava, littler, showtext
                                                             // findVar used 1333 times in 24 packages
SEXP Rf_findVarInFrame(SEXP, SEXP);                          // Rf_findVarInFrame used 7 times in RCurl, Rcpp, Rcpp11
                                                             // findVarInFrame used 101 times in 13 packages
SEXP Rf_findVarInFrame3(SEXP, SEXP, Rboolean);               // Rf_findVarInFrame3 used 1 times in pryr
                                                             // findVarInFrame3 used 5 times in datamap
SEXP Rf_getAttrib(SEXP, SEXP);                               // Rf_getAttrib used 256 times in 36 packages
                                                             // getAttrib used 1930 times in 239 packages
SEXP Rf_GetArrayDimnames(SEXP);                              // Rf_GetArrayDimnames unused
                                                             // GetArrayDimnames unused
SEXP Rf_GetColNames(SEXP);                                   // Rf_GetColNames unused
                                                             // GetColNames unused
void Rf_GetMatrixDimnames(SEXP, SEXP*, SEXP*, const char**, const char**); // Rf_GetMatrixDimnames unused
                                                             // GetMatrixDimnames used 2 times in Kmisc, optmatch
SEXP Rf_GetOption(SEXP, SEXP);                               // Rf_GetOption unused
                                                             // GetOption used 5 times in rgl, gmp, Cairo, RGtk2
SEXP Rf_GetOption1(SEXP);                                    // Rf_GetOption1 used 5 times in RProtoBuf, gmp
                                                             // GetOption1 used 1 times in PCICt
int Rf_GetOptionDigits(void);                                // Rf_GetOptionDigits unused
                                                             // GetOptionDigits unused
int Rf_GetOptionWidth(void);                                 // Rf_GetOptionWidth used 1 times in progress
                                                             // GetOptionWidth unused
SEXP Rf_GetRowNames(SEXP);                                   // Rf_GetRowNames unused
                                                             // GetRowNames unused
void Rf_gsetVar(SEXP, SEXP, SEXP);                           // Rf_gsetVar unused
                                                             // gsetVar used 4 times in RSVGTipsDevice, Cairo, RSvgDevice, JavaGD
SEXP Rf_install(const char *);                               // Rf_install used 990 times in 50 packages
                                                             // install used 3178 times in 224 packages
SEXP Rf_installChar(SEXP);                                   // Rf_installChar used 15 times in dplyr, Rcpp
                                                             // installChar used 4 times in dplyr
SEXP Rf_installDDVAL(int i);                                 // Rf_installDDVAL unused
                                                             // installDDVAL unused
SEXP Rf_installS3Signature(const char *, const char *);      // Rf_installS3Signature unused
                                                             // installS3Signature unused
Rboolean Rf_isFree(SEXP);                                    // Rf_isFree unused
                                                             // isFree unused
Rboolean Rf_isOrdered(SEXP);                                 // Rf_isOrdered unused
                                                             // isOrdered used 65 times in partykit, PythonInR, data.table, RSQLite
Rboolean Rf_isUnordered(SEXP);                               // Rf_isUnordered used 1 times in OpenMx
                                                             // isUnordered used 2 times in PythonInR
Rboolean Rf_isUnsorted(SEXP, Rboolean);                      // Rf_isUnsorted unused
                                                             // isUnsorted unused
SEXP Rf_lengthgets(SEXP, R_len_t);                           // Rf_lengthgets used 7 times in readxl, readr
                                                             // lengthgets used 47 times in 11 packages
SEXP Rf_xlengthgets(SEXP, R_xlen_t);                         // Rf_xlengthgets unused
                                                             // xlengthgets unused
SEXP R_lsInternal(SEXP, Rboolean);                           // R_lsInternal used 5 times in Rcpp, rJava, Rcpp11, qtbase
SEXP R_lsInternal3(SEXP, Rboolean, Rboolean);                // R_lsInternal3 unused
SEXP Rf_match(SEXP, SEXP, int);                              // Rf_match used 2 times in Rvcg
                                                             // match used 8773 times in 388 packages
SEXP Rf_matchE(SEXP, SEXP, int, SEXP);                       // Rf_matchE unused
                                                             // matchE unused
SEXP Rf_namesgets(SEXP, SEXP);                               // Rf_namesgets used 4 times in OpenMx, rpf
                                                             // namesgets used 80 times in 14 packages
SEXP Rf_mkChar(const char *);                                // Rf_mkChar used 517 times in 32 packages
                                                             // mkChar used 4545 times in 287 packages
SEXP Rf_mkCharLen(const char *, int);                        // Rf_mkCharLen used 21 times in refGenome, redland, Rcpp11, stringi, Kmisc, Rcpp, sourcetools, iotools
                                                             // mkCharLen used 38 times in 16 packages
Rboolean Rf_NonNullStringMatch(SEXP, SEXP);                  // Rf_NonNullStringMatch unused
                                                             // NonNullStringMatch used 8 times in proxy, arules, arulesSequences, cba
int Rf_ncols(SEXP);                                          // Rf_ncols used 22 times in fdaPDE, fts, BoomSpikeSlab, Rmosek, ccgarch, rcppbugs, biganalytics, CEC, OpenMx, RTriangle
                                                             // ncols used 3805 times in 182 packages
int Rf_nrows(SEXP);                                          // Rf_nrows used 32 times in 12 packages
                                                             // nrows used 4332 times in 215 packages
SEXP Rf_nthcdr(SEXP, int);                                   // Rf_nthcdr unused
                                                             // nthcdr used 9 times in sprint, rmongodb, PythonInR, xts
typedef enum {Bytes, Chars, Width} nchar_type;
int R_nchar(SEXP string, nchar_type type_,                   // R_nchar unused
     Rboolean allowNA, Rboolean keepNA, const char* msg_name);
Rboolean Rf_pmatch(SEXP, SEXP, Rboolean);                    // Rf_pmatch unused
                                                             // pmatch used 169 times in ore, git2r, AdaptFitOS, data.table, seqminer, locfit, oce, rmumps
Rboolean Rf_psmatch(const char *, const char *, Rboolean);   // Rf_psmatch unused
                                                             // psmatch used 5 times in rgl
void Rf_PrintValue(SEXP);                                    // Rf_PrintValue used 95 times in 19 packages
                                                             // PrintValue used 119 times in 13 packages
void Rf_readS3VarsFromFrame(SEXP, SEXP*, SEXP*, SEXP*, SEXP*, SEXP*, SEXP*); // Rf_readS3VarsFromFrame unused
                                                             // readS3VarsFromFrame unused
SEXP Rf_setAttrib(SEXP, SEXP, SEXP);                         // Rf_setAttrib used 325 times in 35 packages
                                                             // setAttrib used 1830 times in 251 packages
void Rf_setSVector(SEXP*, int, SEXP);                        // Rf_setSVector unused
                                                             // setSVector unused
void Rf_setVar(SEXP, SEXP, SEXP);                            // Rf_setVar used 1 times in showtext
                                                             // setVar used 24 times in Rhpc, rscproxy, PythonInR, rgenoud, survival, gsl, littler, spatstat
SEXP Rf_stringSuffix(SEXP, int);                             // Rf_stringSuffix unused
                                                             // stringSuffix unused
SEXPTYPE Rf_str2type(const char *);                          // Rf_str2type used 4 times in purrr
                                                             // str2type used 1 times in RGtk2
Rboolean Rf_StringBlank(SEXP);                               // Rf_StringBlank used 1 times in LCMCR
                                                             // StringBlank unused
SEXP Rf_substitute(SEXP,SEXP);                               // Rf_substitute unused
                                                             // substitute used 255 times in 56 packages
const char * Rf_translateChar(SEXP);                         // Rf_translateChar used 1 times in devEMF
                                                             // translateChar used 59 times in 19 packages
const char * Rf_translateChar0(SEXP);                        // Rf_translateChar0 unused
                                                             // translateChar0 unused
const char * Rf_translateCharUTF8(SEXP);                     // Rf_translateCharUTF8 used 22 times in Rserve, xml2, readr, gdtools, Rcpp11, dplyr, Rcpp, haven
                                                             // translateCharUTF8 used 66 times in 13 packages
const char * Rf_type2char(SEXPTYPE);                         // Rf_type2char used 33 times in 13 packages
                                                             // type2char used 107 times in 12 packages
SEXP Rf_type2rstr(SEXPTYPE);                                 // Rf_type2rstr unused
                                                             // type2rstr unused
SEXP Rf_type2str(SEXPTYPE);                                  // Rf_type2str used 4 times in Rcpp, pryr
                                                             // type2str used 3 times in Kmisc, yaml
SEXP Rf_type2str_nowarn(SEXPTYPE);                           // Rf_type2str_nowarn unused
                                                             // type2str_nowarn used 1 times in qrmtools
void Rf_unprotect_ptr(SEXP);                                 // Rf_unprotect_ptr unused
                                                             // unprotect_ptr unused
void __attribute__((noreturn)) R_signal_protect_error(void);
void __attribute__((noreturn)) R_signal_unprotect_error(void);
void __attribute__((noreturn)) R_signal_reprotect_error(PROTECT_INDEX i);
SEXP R_tryEval(SEXP, SEXP, int *);                           // R_tryEval used 1118 times in 24 packages
SEXP R_tryEvalSilent(SEXP, SEXP, int *);                     // R_tryEvalSilent unused
const char *R_curErrorBuf();                                 // R_curErrorBuf used 4 times in Rhpc, Rcpp11
Rboolean Rf_isS4(SEXP);                                      // Rf_isS4 used 16 times in Rcpp, Rcpp11
                                                             // isS4 used 13 times in PythonInR, Rcpp11, dplyr, Rcpp, catnet, rmumps, sdnet
SEXP Rf_asS4(SEXP, Rboolean, int);                           // Rf_asS4 unused
                                                             // asS4 unused
SEXP Rf_S3Class(SEXP);                                       // Rf_S3Class unused
                                                             // S3Class used 4 times in RInside, littler
int Rf_isBasicClass(const char *);                           // Rf_isBasicClass unused
                                                             // isBasicClass unused
Rboolean R_cycle_detected(SEXP s, SEXP child);               // R_cycle_detected unused
typedef enum {
    CE_NATIVE = 0,
    CE_UTF8 = 1,
    CE_LATIN1 = 2,
    CE_BYTES = 3,
    CE_SYMBOL = 5,
    CE_ANY =99
} cetype_t;                                                  // cetype_t used 47 times in 13 packages
cetype_t Rf_getCharCE(SEXP);                                 // Rf_getCharCE used 13 times in RSclient, Rserve, genie, dplyr, Rcpp, rJava, ROracle
                                                             // getCharCE used 16 times in ore, RSclient, PythonInR, Rserve, jsonlite, tau, rJava
SEXP Rf_mkCharCE(const char *, cetype_t);                    // Rf_mkCharCE used 40 times in readxl, mongolite, xml2, readr, Rcpp11, stringi, commonmark, dplyr, Rcpp, haven
                                                             // mkCharCE used 72 times in 15 packages
SEXP Rf_mkCharLenCE(const char *, int, cetype_t);            // Rf_mkCharLenCE used 68 times in readr, ROracle, stringi
                                                             // mkCharLenCE used 23 times in 11 packages
const char *Rf_reEnc(const char *x, cetype_t ce_in, cetype_t ce_out, int subst); // Rf_reEnc used 5 times in RCurl, RSclient, Rserve, rJava
                                                             // reEnc used 3 times in PythonInR, RJSONIO
SEXP R_forceAndCall(SEXP e, int n, SEXP rho);                // R_forceAndCall unused
SEXP R_MakeExternalPtr(void *p, SEXP tag, SEXP prot);        // R_MakeExternalPtr used 321 times in 102 packages
void *R_ExternalPtrAddr(SEXP s);                             // R_ExternalPtrAddr used 2127 times in 115 packages
SEXP R_ExternalPtrTag(SEXP s);                               // R_ExternalPtrTag used 195 times in 32 packages
SEXP R_ExternalPtrProtected(SEXP s);                         // R_ExternalPtrProtected used 6 times in PopGenome, Rcpp, WhopGenome, data.table, Rcpp11
void R_ClearExternalPtr(SEXP s);                             // R_ClearExternalPtr used 157 times in 64 packages
void R_SetExternalPtrAddr(SEXP s, void *p);                  // R_SetExternalPtrAddr used 23 times in ff, PopGenome, RCurl, rstream, Rlabkey, WhopGenome, XML, RJSONIO, memisc, ROracle
void R_SetExternalPtrTag(SEXP s, SEXP tag);                  // R_SetExternalPtrTag used 16 times in PopGenome, rstream, Rlabkey, WhopGenome, Rcpp11, Rcpp, rLindo
void R_SetExternalPtrProtected(SEXP s, SEXP p);              // R_SetExternalPtrProtected used 9 times in PopGenome, rstream, Rlabkey, Rcpp, WhopGenome, Rcpp11
typedef void (*R_CFinalizer_t)(SEXP);
void R_RegisterFinalizer(SEXP s, SEXP fun);                  // R_RegisterFinalizer used 1 times in XML
void R_RegisterCFinalizer(SEXP s, R_CFinalizer_t fun);       // R_RegisterCFinalizer used 73 times in 27 packages
void R_RegisterFinalizerEx(SEXP s, SEXP fun, Rboolean onexit); // R_RegisterFinalizerEx unused
void R_RegisterCFinalizerEx(SEXP s, R_CFinalizer_t fun, Rboolean onexit); // R_RegisterCFinalizerEx used 152 times in 58 packages
void R_RunPendingFinalizers(void);                           // R_RunPendingFinalizers unused
SEXP R_MakeWeakRef(SEXP key, SEXP val, SEXP fin, Rboolean onexit); // R_MakeWeakRef used 4 times in igraph, svd
SEXP R_MakeWeakRefC(SEXP key, SEXP val, R_CFinalizer_t fin, Rboolean onexit); // R_MakeWeakRefC unused
SEXP R_WeakRefKey(SEXP w);                                   // R_WeakRefKey used 3 times in igraph, Rcpp, Rcpp11
SEXP R_WeakRefValue(SEXP w);                                 // R_WeakRefValue used 7 times in igraph, Rcpp, svd, Rcpp11
void R_RunWeakRefFinalizer(SEXP w);                          // R_RunWeakRefFinalizer used 1 times in igraph
SEXP R_PromiseExpr(SEXP);                                    // R_PromiseExpr unused
SEXP R_ClosureExpr(SEXP);                                    // R_ClosureExpr unused
void R_initialize_bcode(void);                               // R_initialize_bcode unused
SEXP R_bcEncode(SEXP);                                       // R_bcEncode unused
SEXP R_bcDecode(SEXP);                                       // R_bcDecode unused
Rboolean R_ToplevelExec(void (*fun)(void *), void *data);
SEXP R_ExecWithCleanup(SEXP (*fun)(void *), void *data,
         void (*cleanfun)(void *), void *cleandata);
void R_RestoreHashCount(SEXP rho);                           // R_RestoreHashCount unused
Rboolean R_IsPackageEnv(SEXP rho);                           // R_IsPackageEnv unused
SEXP R_PackageEnvName(SEXP rho);                             // R_PackageEnvName unused
SEXP R_FindPackageEnv(SEXP info);                            // R_FindPackageEnv unused
Rboolean R_IsNamespaceEnv(SEXP rho);                         // R_IsNamespaceEnv unused
SEXP R_NamespaceEnvSpec(SEXP rho);                           // R_NamespaceEnvSpec unused
SEXP R_FindNamespace(SEXP info);                             // R_FindNamespace used 14 times in 11 packages
void R_LockEnvironment(SEXP env, Rboolean bindings);         // R_LockEnvironment used 2 times in Rcpp, Rcpp11
Rboolean R_EnvironmentIsLocked(SEXP env);                    // R_EnvironmentIsLocked used 2 times in Rcpp, Rcpp11
void R_LockBinding(SEXP sym, SEXP env);                      // R_LockBinding used 3 times in data.table, Rcpp, Rcpp11
void R_unLockBinding(SEXP sym, SEXP env);                    // R_unLockBinding used 2 times in Rcpp, Rcpp11
void R_MakeActiveBinding(SEXP sym, SEXP fun, SEXP env);      // R_MakeActiveBinding unused
Rboolean R_BindingIsLocked(SEXP sym, SEXP env);              // R_BindingIsLocked used 2 times in Rcpp, Rcpp11
Rboolean R_BindingIsActive(SEXP sym, SEXP env);              // R_BindingIsActive used 2 times in Rcpp, Rcpp11
Rboolean R_HasFancyBindings(SEXP rho);                       // R_HasFancyBindings unused
void Rf_errorcall(SEXP, const char *, ...) __attribute__((noreturn)); // Rf_errorcall used 27 times in purrr, mongolite, jsonlite, pbdMPI, rJava, openssl
                                                             // errorcall used 103 times in RCurl, arules, XML, arulesSequences, pbdMPI, xts, proxy, cba, rJava, RSAP
void Rf_warningcall(SEXP, const char *, ...);                // Rf_warningcall used 5 times in pbdMPI, mongolite
                                                             // warningcall used 4 times in RInside, jsonlite, pbdMPI
void Rf_warningcall_immediate(SEXP, const char *, ...);      // Rf_warningcall_immediate used 2 times in mongolite, V8
                                                             // warningcall_immediate used 2 times in Runuran
void R_XDREncodeDouble(double d, void *buf);                 // R_XDREncodeDouble unused
double R_XDRDecodeDouble(void *buf);                         // R_XDRDecodeDouble unused
void R_XDREncodeInteger(int i, void *buf);                   // R_XDREncodeInteger unused
int R_XDRDecodeInteger(void *buf);                           // R_XDRDecodeInteger unused
typedef void *R_pstream_data_t;
typedef enum {
    R_pstream_any_format,
    R_pstream_ascii_format,
    R_pstream_binary_format,
    R_pstream_xdr_format,
    R_pstream_asciihex_format
} R_pstream_format_t;                                        // R_pstream_format_t used 7 times in RApiSerialize, Rhpc, fastdigest
typedef struct R_outpstream_st *R_outpstream_t;
struct R_outpstream_st {
    R_pstream_data_t data;
    R_pstream_format_t type;
    int version;
    void (*OutChar)(R_outpstream_t, int);
    void (*OutBytes)(R_outpstream_t, void *, int);
    SEXP (*OutPersistHookFunc)(SEXP, SEXP);
    SEXP OutPersistHookData;                                 // OutPersistHookData unused
};
typedef struct R_inpstream_st *R_inpstream_t;
struct R_inpstream_st {
    R_pstream_data_t data;
    R_pstream_format_t type;
    int (*InChar)(R_inpstream_t);
    void (*InBytes)(R_inpstream_t, void *, int);
    SEXP (*InPersistHookFunc)(SEXP, SEXP);
    SEXP InPersistHookData;                                  // InPersistHookData unused
};
void R_InitInPStream(R_inpstream_t stream, R_pstream_data_t data, // R_InitInPStream used 2 times in RApiSerialize, Rhpc
       R_pstream_format_t type,
       int (*inchar)(R_inpstream_t),
       void (*inbytes)(R_inpstream_t, void *, int),
       SEXP (*phook)(SEXP, SEXP), SEXP pdata);
void R_InitOutPStream(R_outpstream_t stream, R_pstream_data_t data, // R_InitOutPStream used 4 times in RApiSerialize, Rhpc, fastdigest, qtbase
        R_pstream_format_t type, int version,
        void (*outchar)(R_outpstream_t, int),
        void (*outbytes)(R_outpstream_t, void *, int),
        SEXP (*phook)(SEXP, SEXP), SEXP pdata);
void R_InitFileInPStream(R_inpstream_t stream, FILE *fp,     // R_InitFileInPStream used 1 times in filehash
    R_pstream_format_t type,
    SEXP (*phook)(SEXP, SEXP), SEXP pdata);
void R_InitFileOutPStream(R_outpstream_t stream, FILE *fp,   // R_InitFileOutPStream unused
     R_pstream_format_t type, int version,
     SEXP (*phook)(SEXP, SEXP), SEXP pdata);
void R_Serialize(SEXP s, R_outpstream_t ops);                // R_Serialize used 4 times in RApiSerialize, Rhpc, fastdigest, qtbase
SEXP R_Unserialize(R_inpstream_t ips);                       // R_Unserialize used 4 times in RApiSerialize, Rhpc, filehash
SEXP R_do_slot(SEXP obj, SEXP name);                         // R_do_slot used 162 times in 11 packages
SEXP R_do_slot_assign(SEXP obj, SEXP name, SEXP value);      // R_do_slot_assign used 17 times in excel.link, redland, Rcpp11, Matrix, TMB, Rcpp, FREGAT, HiPLARM, OpenMx, rJPSGCS
int R_has_slot(SEXP obj, SEXP name);                         // R_has_slot used 14 times in Matrix, Rcpp, HiPLARM, OpenMx, Rcpp11
SEXP R_do_MAKE_CLASS(const char *what);                      // R_do_MAKE_CLASS used 6 times in TMB, Rcpp, Rcpp11
SEXP R_getClassDef (const char *what);                       // R_getClassDef used 5 times in memisc, Rcpp, Rcpp11
SEXP R_getClassDef_R(SEXP what);                             // R_getClassDef_R unused
Rboolean R_has_methods_attached(void);                       // R_has_methods_attached unused
Rboolean R_isVirtualClass(SEXP class_def, SEXP env);         // R_isVirtualClass unused
Rboolean R_extends (SEXP class1, SEXP class2, SEXP env);     // R_extends unused
SEXP R_do_new_object(SEXP class_def);                        // R_do_new_object used 9 times in TMB, memisc, Rcpp, Rcpp11
int R_check_class_and_super(SEXP x, const char **valid, SEXP rho); // R_check_class_and_super used 5 times in Matrix, Rmosek, HiPLARM
int R_check_class_etc (SEXP x, const char **valid);          // R_check_class_etc used 41 times in Matrix, HiPLARM
void R_PreserveObject(SEXP);                                 // R_PreserveObject used 112 times in 29 packages
void R_ReleaseObject(SEXP);                                  // R_ReleaseObject used 114 times in 27 packages
void R_dot_Last(void);                                       // R_dot_Last used 4 times in RInside, rJava, littler
void R_RunExitFinalizers(void);                              // R_RunExitFinalizers used 4 times in RInside, TMB, rJava, littler
int R_system(const char *);                                  // R_system used 1 times in rJava
Rboolean R_compute_identical(SEXP, SEXP, int);               // R_compute_identical used 14 times in igraph, Matrix, rgp, data.table
void R_orderVector(int *indx, int n, SEXP arglist, Rboolean nalast, Rboolean decreasing); // R_orderVector used 5 times in glpkAPI, nontarget, CEGO
SEXP Rf_allocVector(SEXPTYPE, R_xlen_t);                     // Rf_allocVector used 1086 times in 59 packages
                                                             // allocVector used 12419 times in 551 packages
Rboolean Rf_conformable(SEXP, SEXP);                         // Rf_conformable unused
                                                             // conformable used 141 times in 22 packages
SEXP Rf_elt(SEXP, int);                                      // Rf_elt unused
                                                             // elt used 2310 times in 37 packages
Rboolean Rf_inherits(SEXP, const char *);                    // Rf_inherits used 530 times in 21 packages
                                                             // inherits used 814 times in 80 packages
Rboolean Rf_isArray(SEXP);                                   // Rf_isArray unused
                                                             // isArray used 34 times in checkmate, PythonInR, data.table, ifultools, Rblpapi, Rvcg, unfoldr, TMB, kza, qtbase
Rboolean Rf_isFactor(SEXP);                                  // Rf_isFactor used 22 times in 11 packages
                                                             // isFactor used 42 times in checkmate, rggobi, PythonInR, data.table, Kmisc, partykit, cba, qtbase, RSQLite
Rboolean Rf_isFrame(SEXP);                                   // Rf_isFrame used 1 times in OpenMx
                                                             // isFrame used 15 times in checkmate, splusTimeDate, OjaNP, PythonInR, data.table, robfilter
Rboolean Rf_isFunction(SEXP);                                // Rf_isFunction used 4 times in Rserve, genie, RcppClassic
                                                             // isFunction used 274 times in 43 packages
Rboolean Rf_isInteger(SEXP);                                 // Rf_isInteger used 39 times in 14 packages
                                                             // isInteger used 402 times in 77 packages
Rboolean Rf_isLanguage(SEXP);                                // Rf_isLanguage unused
                                                             // isLanguage used 63 times in PythonInR, rgp, RandomFields
Rboolean Rf_isList(SEXP);                                    // Rf_isList unused
                                                             // isList used 40 times in 11 packages
Rboolean Rf_isMatrix(SEXP);                                  // Rf_isMatrix used 55 times in 16 packages
                                                             // isMatrix used 293 times in 65 packages
Rboolean Rf_isNewList(SEXP);                                 // Rf_isNewList used 6 times in Rmosek, RcppClassic
                                                             // isNewList used 103 times in 27 packages
Rboolean Rf_isNumber(SEXP);                                  // Rf_isNumber unused
                                                             // isNumber used 14 times in PythonInR, readr, stringi, qtbase
Rboolean Rf_isNumeric(SEXP);                                 // Rf_isNumeric used 31 times in Rmosek, gaselect, RcppCNPy, genie, mets, Morpho, rstan, Rcpp, RcppClassic, OpenMx
                                                             // isNumeric used 468 times in 49 packages
Rboolean Rf_isPairList(SEXP);                                // Rf_isPairList unused
                                                             // isPairList used 2 times in PythonInR
Rboolean Rf_isPrimitive(SEXP);                               // Rf_isPrimitive unused
                                                             // isPrimitive used 7 times in PythonInR, qtbase
Rboolean Rf_isTs(SEXP);                                      // Rf_isTs unused
                                                             // isTs used 2 times in PythonInR
Rboolean Rf_isUserBinop(SEXP);                               // Rf_isUserBinop unused
                                                             // isUserBinop used 2 times in PythonInR
Rboolean Rf_isValidString(SEXP);                             // Rf_isValidString unused
                                                             // isValidString used 26 times in SSN, PythonInR, foreign, pbdMPI, RJSONIO, SASxport
Rboolean Rf_isValidStringF(SEXP);                            // Rf_isValidStringF unused
                                                             // isValidStringF used 2 times in PythonInR
Rboolean Rf_isVector(SEXP);                                  // Rf_isVector used 15 times in RProtoBuf, RcppCNPy, stringi, purrr, RcppClassic, OpenMx, adaptivetau
                                                             // isVector used 182 times in 46 packages
Rboolean Rf_isVectorAtomic(SEXP);                            // Rf_isVectorAtomic used 13 times in agop, tidyr, reshape2, stringi
                                                             // isVectorAtomic used 40 times in bit, matrixStats, checkmate, PythonInR, data.table, Matrix, bit64, potts, aster2, qtbase
Rboolean Rf_isVectorList(SEXP);                              // Rf_isVectorList used 23 times in genie, purrr, RNiftyReg, stringi
                                                             // isVectorList used 12 times in RPostgreSQL, spsurvey, PythonInR, stringi, adaptivetau, PCICt, RandomFields
Rboolean Rf_isVectorizable(SEXP);                            // Rf_isVectorizable unused
                                                             // isVectorizable used 3 times in PythonInR, robfilter
SEXP Rf_lang1(SEXP);                                         // Rf_lang1 used 14 times in PopGenome, WhopGenome, nontarget, Rcpp11, purrr, Rcpp, CEGO
                                                             // lang1 used 30 times in 11 packages
SEXP Rf_lang2(SEXP, SEXP);                                   // Rf_lang2 used 64 times in 13 packages
                                                             // lang2 used 216 times in 75 packages
SEXP Rf_lang3(SEXP, SEXP, SEXP);                             // Rf_lang3 used 19 times in purrr, RcppDE, Rcpp, lbfgs, emdist, Rcpp11
                                                             // lang3 used 107 times in 28 packages
SEXP Rf_lang4(SEXP, SEXP, SEXP, SEXP);                       // Rf_lang4 used 8 times in lme4, purrr, Rcpp, diversitree, Rcpp11
                                                             // lang4 used 65 times in 21 packages
SEXP Rf_lang5(SEXP, SEXP, SEXP, SEXP, SEXP);                 // Rf_lang5 unused
                                                             // lang5 used 11 times in PBSddesolve, GNE, SMC
SEXP Rf_lang6(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);           // Rf_lang6 used 1 times in lme4
                                                             // lang6 used 2 times in GNE
SEXP Rf_lastElt(SEXP);                                       // Rf_lastElt unused
                                                             // lastElt unused
SEXP Rf_lcons(SEXP, SEXP);                                   // Rf_lcons used 26 times in purrr, rcppbugs, Rcpp, pryr
                                                             // lcons used 16 times in rmgarch
R_len_t Rf_length(SEXP);                                     // Rf_length used 662 times in 69 packages
SEXP Rf_list1(SEXP);                                         // Rf_list1 used 1 times in Rcpp
                                                             // list1 used 197 times in 11 packages
SEXP Rf_list2(SEXP, SEXP);                                   // Rf_list2 unused
                                                             // list2 used 441 times in 12 packages
SEXP Rf_list3(SEXP, SEXP, SEXP);                             // Rf_list3 unused
                                                             // list3 used 72 times in marked, Rdsdp, BH, svd
SEXP Rf_list4(SEXP, SEXP, SEXP, SEXP);                       // Rf_list4 unused
                                                             // list4 used 58 times in igraph, PBSddesolve, Rserve, BH, yaml, treethresh, SMC
SEXP Rf_list5(SEXP, SEXP, SEXP, SEXP, SEXP);                 // Rf_list5 unused
                                                             // list5 used 63 times in Rdsdp, BH
SEXP Rf_listAppend(SEXP, SEXP);                              // Rf_listAppend unused
                                                             // listAppend used 1 times in ore
SEXP Rf_mkNamed(SEXPTYPE, const char **);                    // Rf_mkNamed used 8 times in Matrix, gmp, RSclient, HiPLARM
                                                             // mkNamed used 12 times in RCassandra, coxme, SamplerCompare, survival, JavaGD, DEoptim, qtbase
SEXP Rf_mkString(const char *);                              // Rf_mkString used 179 times in 24 packages
                                                             // mkString used 814 times in 96 packages
int Rf_nlevels(SEXP);                                        // Rf_nlevels unused
                                                             // nlevels used 546 times in 26 packages
int Rf_stringPositionTr(SEXP, const char *);                 // Rf_stringPositionTr unused
                                                             // stringPositionTr unused
SEXP Rf_ScalarComplex(Rcomplex);                             // Rf_ScalarComplex unused
                                                             // ScalarComplex unused
SEXP Rf_ScalarInteger(int);                                  // Rf_ScalarInteger used 390 times in 20 packages
                                                             // ScalarInteger used 704 times in 88 packages
SEXP Rf_ScalarLogical(int);                                  // Rf_ScalarLogical used 160 times in 20 packages
                                                             // ScalarLogical used 450 times in 64 packages
SEXP Rf_ScalarRaw(Rbyte);                                    // Rf_ScalarRaw unused
                                                             // ScalarRaw used 4 times in qtbase, RGtk2
SEXP Rf_ScalarReal(double);                                  // Rf_ScalarReal used 146 times in 19 packages
                                                             // ScalarReal used 330 times in 65 packages
SEXP Rf_ScalarString(SEXP);                                  // Rf_ScalarString used 33 times in agop, Nippon, Rcpp11, rpf, stringi, purrr, Rcpp
                                                             // ScalarString used 198 times in 37 packages
R_xlen_t Rf_xlength(SEXP);                                   // Rf_xlength used 46 times in WGCNA, Rcpp, Rcpp11
SEXP Rf_protect(SEXP);                                       // Rf_protect used 332 times in 12 packages
                                                             // protect used 599 times in 101 packages
void Rf_unprotect(int);                                      // Rf_unprotect used 289 times in 12 packages
                                                             // unprotect used 110 times in 35 packages
void R_ProtectWithIndex(SEXP, PROTECT_INDEX *);              // R_ProtectWithIndex used 8 times in OpenMx
void R_Reprotect(SEXP, PROTECT_INDEX);                       // R_Reprotect used 2 times in OpenMx
SEXP R_FixupRHS(SEXP x, SEXP y);                             // R_FixupRHS unused
}

Stats

              0   1   2   3   4   5   6   7   8   9  10+
     Macro:  57   9   7   3   4   1   2   3   0   1  98  (usage count)
     (185)   57  20   8   2   6   4   4   5   3   4  72  (distinct package count)
  Function: 103  14  17  11  14  11   7   6   4   5 186  (usage count)
     (378)  103  30  30  20  28   7   9   6   1   5 139  (distinct package count)
  Variable:  26   0   4   2   1   0   1   0   0   0  20  (usage count)
      (54)   26   4   2   2   0   0   0   1   0   1  18  (distinct package count)
   TypeDef:   1   0   0   0   0   0   0   1   0   0   5  (usage count)
       (7)    1   0   0   1   0   0   0   0   0   0   5  (distinct package count)
     Alias:  43   9   9   8   6   4   0   3   1   1  97  (usage count)
     (181)   43  25  14   5   9   1   5   5   3   1  70  (distinct package count)

(for a quick explanation of these stats see Native_API_stats_of_R.h)