Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUnable to give different names to R class and Cpp Class #909
Comments
|
I think that maybe be related to registration from (And, if I may: We test all changes against all (or, essentially all) CRAN packages. The best defence against surprises of this type is to have your code out there as CRAN would not let us upgrade it side effects are found. Hence, surprises tend to be few. I still suspect this may be due to the change brought upon by R.) |
|
Thanks for the quick response. I tried to figure out what changes caused the problem and my best guess is, that it was the On the other hand I'm quite certain that it does not relate to the registration but I will try to double check that. In addition thanks for the hint with the leading underscore, but does this also makes the R object invisible to the user? Again thanks for the answer! |
Correct. And I believe we have a unit test for RcppClasses too.
Of course not. But Rcpp Attributes switches to a leading underscore and 1000+ CRAN packages use that (when they updated their RcppExports.{cpp,R}. |
Since the latest changes of the package it is no more possible to name the R Class differently from the Cpp Class.
I'm wirting a package and use the Rcpp package.
In particular I used the had
on the Cpp side and
on the R side.
That worked fine, at least until Rcpp version 0.12.17.
But since version 0.12.19 I get a error when trying to build my package, saying the ".ClassA" can't be found in modul "PkgModuleName"
The only fix I found is to change the setRcppClass property "class" form ".ClassA" to "ClassA" and hence to the same name as the cpp class.
Did I miss something or why was this changed?
Best regards
Nico Schmid