'C++' Standard Template Library Containers

Use 'C++' Standard Template Library containers interactively in R. Includes sets, unordered sets, multisets, unordered multisets, maps, unordered maps, multimaps, unordered multimaps, stacks, queues, priority queues, vectors, deques, forward lists, and lists.


R-CMD-check

cppcontainers

The package makes C++ Standard Template Library containers interactively usable in R.

Advantages

A brief summary of the discussion in the vignette:

  • Speed up development workflows.
  • Use C++ data structures without a compiler.
  • Make C++ containers easily accessible to R users.
  • Push R towards general purpose language.
  • Bring performance of C++ containers to R.

Installation

An installation from source requires compilation. On Windows, you must, therefore, have Rtools installed.

Install the package from GitHub:

devtools::install_github("cdueben/cppcontainers", build_vignettes = T)

On various operating systems, you can skip the compilation step by installing the binary package from CRAN:

install.packages("cppcontainers")

User Guide

New users may want to consult the vignette for an introduction to the package. It, e.g., briefly introduces the container types and lists which method applies to which class.

Contribution

You are welcome to contribute by reporting issues on GitHub or by extending the package through pull requests. Guidelines on coding style and project organization are in inst/guidelines.md.

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("cppcontainers")

1.0.5 by Christian Düben, a year ago


https://github.com/cdueben/cppcontainers


Report a bug at https://github.com/cdueben/cppcontainers/issues


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


Authors: Christian Düben [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports base, methods, Rcpp

Suggests knitr, rmarkdown, testthat

Linking to Rcpp

System requirements: C++20


See at CRAN