Skip to content
Prev 3547 / 10988 Next

[Rcpp-devel] Internals: how does DataFrame get initialized?

Thanks. (your URL didn't give me permission, but I found it on my
machine in /usr/local/lib/R/site-library/Rcpp/include/Rcpp )

It does:
  return DataFrame(
    internal::try_catch(
      ::Rcpp_lcons(
        ::Rf_install( "data.frame"),
        pairlist( t1, t2, t3, t4, t5 )
  )));

pairlist() appears to initialize a PairList object, which is a
DottedPair object. (It derives from PairList, but does not seem to add
anything?)

DottedPair derives from RObject, but adds, er, functions. (Which Rcpp
functionality is this adding? Why are these functions in their own class
and not in RObject?)

Finally RObject is the class that holds the SEXP.
Last must-be-easy question of this email: where is RObject.cpp? Where is
the RObject::setSEXP() function body?

Thanks,
Darren