© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. GladstoneC++ Software Interoperability for Windows Programmershttps://doi.org/10.1007/978-1-4842-7966-3_5

5. Building an R Package

Adam Gladstone1  
(1)
Madrid, Spain
 

Introduction

In this chapter and the next, we connect our simple C++ library of statistical functions to R. We do this by creating an R package using Rcpp. We then use this wrapper component to expose the functionality we want. This chapter focuses on both the project setup and the mechanics of building packages with RStudio. The following chapter focuses on the details of using Rcpp as a framework for connecting C++ and R.

The project setup in this case is slightly more involved than previously. ...

Get C++ Software Interoperability for Windows Programmers: Connecting to C#, R, and Python Clients now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.