English

Thirteen Simple Steps for Creating An R Package with an External C++ Library

Computation 2019-11-18 v1

Abstract

We desribe how we extend R with an external C++ code library by using the Rcpp package. Our working example uses the recent machine learning library and application 'Corels' providing optimal yet easily interpretable rule lists <arXiv:1704.01701> which we bring to R in the form of the 'RcppCorels' package. We discuss each step in the process, and derive a set of simple rules and recommendations which are illustrated with the concrete example.

Cite

@article{arxiv.1911.06416,
  title  = {Thirteen Simple Steps for Creating An R Package with an External C++ Library},
  author = {Dirk Eddelbuettel},
  journal= {arXiv preprint arXiv:1911.06416},
  year   = {2019}
}
R2 v1 2026-06-23T12:16:39.234Z