I wanted to send this email to the R-devel mailing list but there's a problem to subscribe to this list. Here is the message I wrote.
I want to submit a package to CRAN, namely the OwenQ package. This package uses Rcpp
and BH
, the package which links to the Boost C++ libraries.
The package works flawlessly. However, the R CMD CHECK generates this warning:
- checking whether package 'OwenQ' can be installed ... WARNING
Found the following significant warnings:
d:/RCompile/CRANpkg/lib/3.7/BH/include/boost/math/special_functions/detail/bernoulli_details.hpp:72:36: warning: ISO C++ 1998 does not support 'long long' [-Wlong-long]
d:/RCompile/CRANpkg/lib/3.7/BH/include/boost/math/special_functions/detail/bernoulli_details.hpp:96:9: warning: ISO C++ 1998 does not support 'long long' [-Wlong-long]See 'd:/RCompile/CRANincoming/R-devel/OwenQ.Rcheck/00install.out' for details.
Regarding this warning, I wrote this comment to CRAN during my submission:
The WARNING from R CMD check is related to the boost library in the BH package. More precisely, it is related to the file bernoulli_details.hpp which is not used by my package (it uses only owens-t.hpp which does not include bernoulli_detail.hpp). I do not know how I could fix this warning.
What could I do to fix this warning? The warning says : "ISO C++ 1998 does not support 'long long'". Is there something to do to ask Rcpp to not use C++ 1998 ? (I'm ignorant in C++, I don't even know whether my question makes sense). What would be your advice otherwise ?