Re: [R-pkg-devel] accessing call constructors in Cpp

2021-01-06 Thread Oliver Madsen
Hi Bill thanks for your answer, The only part left out (which I only realized as I'm trying out your suggestion) is an #include Rcpp in order to remove 5 errors thrown when executing Rcpp::sourceCpp. I am guessing that the suggestion from RAPI to always work with R_NO_REMAP defined is taken litera

Re: [R-pkg-devel] accessing call constructors in Cpp

2021-01-05 Thread Bill Dunlap
Try using their official names, Rf_ScalarReal, Rf_eval, Rf_install, etc. You may have #defined R_NO_REMAP in code that you did not show us. -Bill On Tue, Jan 5, 2021 at 1:42 PM Oliver Madsen wrote: > This is maybe better suited for Rcpp-devel or another mailing list. If so, > I apologize. :-) >

[R-pkg-devel] accessing call constructors in Cpp

2021-01-05 Thread Oliver Madsen
This is maybe better suited for Rcpp-devel or another mailing list. If so, I apologize. :-) In a pet project I've been implementing quite a bit of a package structure within Cpp, including classes to contain and manipulate structures. As a final part of the implementation a user provided R functio