Abstract
This chapter provides an overview of how to use Rcpp when writing an R package. It shows how using the function Rcpp.package.skeleton() can create a complete and self-sufficient example of a package using Rcpp. All components of the directory tree created by Rcpp.package.skeleton() are discussed in detail. A brief case study of an existing CRAN package concludes the chapter.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Bates D, François R, Eddelbuettel D (2012) RcppEigen: Rcpp integration for the Eigen templated linear algebra library. URL http://CRAN.R-Project.org/package=RcppEigen, R package version 0.3.1.2
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
Fellows I (2012) wordcloud: Word clouds. URL http://CRAN.R-Project.org/package=wordcloud, R package version 2.2
François R, Eddelbuettel D (2010) RcppGSL: Rcpp integration for GNU GSL vectors and matrices. URL http://CRAN.R-Project.org/package=RcppGSL, R package version 0.2.0
François R, Eddelbuettel D, Bates D (2012) RcppArmadillo: Rcpp integration for Armadillo templated linear algebra library. URL http://CRAN.R-Project.org/package=RcppArmadillo, R package version 0.3.4.4
Leisch F (2008) Tutorial on Creating R Packages. In: Brito P (ed) COMPSTAT 2008 – Proceedings in Computational Statistics, Physica Verlag, Heidelberg, Germany, URL http://CRAN.R-Project.org/doc/contrib/Leisch-CreatingPackages.pdf
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
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 The Author
About this chapter
Cite this chapter
Eddelbuettel, D. (2013). Using Rcpp in Your Package. 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_5
Download citation
DOI: https://doi.org/10.1007/978-1-4614-6868-4_5
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)