Closed eddelbuettel closed 2 years ago
Dirk, thanks for taking the time to go over this. I tried it out and indeed the tests fail, and I cannot figure out what goes wrong at the moment. I am pretty sure that the old "buggy" behaviour made my code behave as I intended, so for now I am opting to put the alternative declaration in place. I tried this out with RcppArmadillo 0.10.8.2.0 and everything seems to work out nicely; see here.
I guess if I submit this new version to CRAN this whole thing will be resolved for odpc, right?
Best, Ezequiel
PS: Also, thanks a lot for developing Rcpp and RcppArmadillo, they are fantastic.
Yes -- If you want to leave things 'as is' we need to add the 'opt-into' as you have done in the updated #3 and it only needs to be at CRAN before May when I plan to 'flip the switch'.
Please apply these two one-line changes to
src/Makevars.in
andsrc/Makevars.win
They each just add the line
PKG_CPPFLAGS = -DRCPP_ARMADILLO_FIX_Field
to ensure each compilation defines this declaration (and doing so is easier/quicker than adding it to each source file).However, when you do, your behaviour in the package changes and examples and tests fail. Can you look into adapting the code?
If you can't or won't because the old (long-published but arguably 'buggy') behaviour by RcppArmadillo was useful for your case we can simply do the inverse and define the declaration of 'yes please use old RcppArmadillo behaviour' as describe in issue over in its repo . You are probably in a better position to judge how this should evolve.
Please let me know if I can help otherwise, I simply haven't had time to dig into internals of your package yet.