I tried to submit R package which support OpenMP (This package can be compiled in Linux if openmp is available).
I have got this error when I checked may package.
checking compilation flags in Makevars ... WARNING Non-portable flags in variable ‘PKG_CXXFLAGS’: -fopenmp
How can I suppress this error and submit it to the CRAN.
From the R Extensions Manual, you need:
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
See here for a recent R-help post with example CRAN packages and more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With