Cleaner Generic Functions with RCPP_RETURN Macros
TL;DR
C++ templates and function overloading are incompatible with R’s C API, so
polymorphism must be achieved via run-time dispatch, handled explicitly by
the programmer.
The traditional technique for operating on SEXP objects in a generic
manner entails a great deal of boilerplate code, which can be unsightly,
... [Read more...]