Abstract
This chapter discusses Rcpp modules which allow programmers to expose C++ functions and classes to R with relative ease. Rcpp modules are inspired from the Boost.Python C++ library which provides similar features for integrating Python and C++. Furthermore, Rcpp modules also offer the ability to extend C++classes exposed to Rdirectly from the Rside. This chapter discusses modules in detail and ends on an applied case study featuring the RcppCNPy package.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Abrahams D, Grosse-Kunstleve RW (2003) Building Hybrid Systems with Boost.Python. Boost Consulting, URL http://www.boostpro.com/writing/bpl.pdf
Albert C, Vogel S (2012) GUTS: Fast Calculation of the Likelihood of a Stochastic Survival Model. URL http://CRAN.R-Project.org/package=GUTS, R package version 0.2.8
Auguie B (2012a) cda: Couple dipole approximation. URL http://CRAN.R-Project.org/package=cda, R package version 1.2.1
Auguie B (2012b) planar: Multilayer optics. URL http://CRAN.R-Project.org/package=planar, R package version 1.2.4
Eddelbuettel D (2012a) RcppCNPy: Rcpp bindings for NumPy files. URL http://CRAN.R-Project.org/package=RcppCNPy, R package version 0.2.0
Eddelbuettel D, François R (2012b) RcppBDT: Rcpp binding for the Boost Date_Time library. URL http://CRAN.R-Project.org/package=RcppBDT, R package version 0.2.1
François R (2012a) highlight: Syntax highlighter. URL http://CRAN.R-Project.org/package=highlight, R package version 0.3–2
François R (2012b) parser: Detailed R source code parser. URL http://CRAN.R-Project.org/package=parser, R package version 0.1
Jurka TP, Tsuruoka Y (2012) maxent: Low-memory Multinomial Logistic Regression with Support for Text Classification. URL http://CRAN.R-Project.org/package=maxent, R package version 1.3.2
King M, Diaz FC (2011) RSofia: Port of sofia-ml to R. URL http://CRAN.R-Project.org/package=RSofia, R package version 1.1
R Development Core Team (2012d) Writing R extensions. R Foundation for Statistical Computing, Vienna, Austria, URL http://CRAN.R-Project.org/doc/manuals/R-exts.html, ISBN 3-900051-11-9
Thomas A, Redd A (2012) transmission: Continuous time infectious disease models on individual data. URL http://CRAN.R-Project.org/package=transmission, R package version 0.1
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 The Author
About this chapter
Cite this chapter
Eddelbuettel, D. (2013). Modules. In: Seamless R and C++ Integration with Rcpp. Use R!, vol 64. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-6868-4_7
Download citation
DOI: https://doi.org/10.1007/978-1-4614-6868-4_7
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-6867-7
Online ISBN: 978-1-4614-6868-4
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)