[Rcpp-devel] [R-pkg-devel] moving from C to C++ with Rcpp in R package

Serguei Sokol serguei.sokol at gmail.com
Thu Jun 2 15:49:15 CEST 2022


Le 02/06/2022 à 15:32, Dirk Eddelbuettel a écrit :
> 
> (Removed CC to r-package-devel)
> 
> On 2 June 2022 at 16:24, Ivan Krylov wrote:
> | Unfortunately, this means editing RcppExports.R, which (I think)
> | prevents you from enjoying the way Rcpp::compileAttributes() sets
> | everything up for you.
> 
> Yes. I think that is the best I came up with once too in a time of need in a
> package actively mixing C and C++.  It simply is easier to have just C++, and
> I think you generally can just convert your C files.
... or simply call them from exported C++ and letting Rcpp to manage the 
whole R export and init.c

Best,
Serguei.



More information about the Rcpp-devel mailing list