![]() ![]() Initially, I made the mistake of selecting the most interconnected file in the readxl package. ![]() Step-by-step integrationĪfter I’d set-up my environment it was time to start converting the files. ![]() I found it easier to include the macros since the header file needs to come before any headers that use Rcpp. Next, I needed to include either the cpp11/R.hpp header or the macros R_NO_REMAP and STRICT_R_HEADERS. To get started, I followed the initial set-up steps outlined in Jim’s article and then recompiled, to confirm it was successful. Using both Rcpp and cpp11 at the same time in a package is okay for short term work like this, so I didn’t feel rushed. To help others going through a similar process, I wanted to review the workflows and tools we used to make this easier. But there were still some challenges I encountered. Great post about converting packages from Rcpp to cpp11, which I heavily referenced during the process. Near the end of the summer, I got to work with Jenny Bryan onĬonverting readxl to using cpp11. During most of my internship, I worked on triaging issues, fixing bugs, and adding new features to cpp11. Its goals and syntax are similar to the excellent Rcpp package. The cpp11 package is a header-only R package that helps R package developers handle R objects with C++ code. Over the summer I had the pleasure of working with Jim Hester on theĬpp11 package as a tidyverse summer intern. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |