[R-pkg-devel] clang-UBSAN

Gábor Csárdi c@@rd|@g@bor @end|ng |rom gm@||@com
Mon May 13 09:24:20 CEST 2024


The rhub package should be able to reproduce that, see
https://github.com/r-hub/rhub#readme

Or you can use the clang-asan container directly:
https://r-hub.github.io/containers/

Gabor

On Mon, May 13, 2024 at 12:31 AM Kaifeng Lu <kaifenglu using gmail.com> wrote:
>
> Dear friends,
>
> I am developing an R package built with Rcpp. The package passed the test
> with devtools::check() before submission to CRAN, but failed with the
> following clang-UBSAN issue after submission to CRAN:
>
> /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
> 'int'
>
> Is there any way to reproduce the error before submitting the package to
> CRAN?
>
> Thank you very much for helping!
>
> Regards,
> Kaifeng
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list