Header-Only 'C++' and 'R' Interface

Provides a header only, 'C++' interface to 'R' with enhancements over 'cpp11'. Enforces copy-on-write semantics consistent with 'R' behavior. Offers native support for ALTREP objects, 'UTF-8' string handling, modern 'C++' features and idioms, and reduced memory requirements. Allows for vendoring, making it useful for restricted environments. Compared to 'cpp11', it adds support for converting 'C++' maps to 'R' lists, 'Roxygen' documentation directly in 'C++' code, proper handling of matrix attributes, support for nullable external pointers, bidirectional copy of complex number types, flexibility in type conversions, use of nullable pointers, and various performance optimizations.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cpp4r")

1.3.0 by Mauricio Vargas Sepulveda, 15 days ago


https://cpp4r.org, https://github.com/pachadotdev/cpp4r


Report a bug at https://github.com/pachadotdev/cpp4r/issues


Browse source code at https://github.com/cran/cpp4r


Authors: Mauricio Vargas Sepulveda [aut, cre] (ORCID: , Posit Software , PBC [aut] (Original cpp11 package)


Documentation:   PDF Manual  


Apache License (>= 2) license


Suggests tinytest, rbibutils, litedown


Imported by armadillo4r.

Linked to by capybara, economiccomplexity, kendallknight, later2, leontief, lotri, redatam, tinycache.


See at CRAN