Recently, I have submitted the bpcs (GitHub - davidissamattos/bpcs: bpcs - Bayesian Paired Comparison in Stan), which deals with Bradley-Terry, Davidson models (and many of its extensions).
The first submission went smoothly, but now when I am trying to update the package I get an error from CRAN for the last version on:
clang-UBSAN Tests of memory access errors using Undefined Behavior Sanitizer (see more on: Index of /pub/bdr/memtests/clang-UBSAN/bpcs). The following message also appears in the logs:
“/data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/internal/caster.h:30:25: runtime error: nan is outside the range of representable values of type ‘unsigned int’”
They ask me to justify if I have fixed that (which I have no clue how to justify) and they even said that it is a hard problem to identify.
The package passes all the other checks in mac, linux and windows and works perfectly with gcc.
The package requires rstan 2.20 or higher and is build with rstantools.
Any clues on how to proceed?
If it is an old bug that was not updated in rstan yet I am open to switch to cmdstanr if CRAN accepts that.
A related topic: