You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hope all is well. Glancing at the updated package, I think everything should now be in order for your CRAN submission.
That is, you are using an #ifdef _OPENMP to protect against including OpenMP headers ( <omp.h> ) if they are absent from the crippled compiler inside a custom myomp.h
This plugin only works with the standalone Rcpp functions (evalCpp(), cppFunction(), and sourceCpp()). Within a package context, it isn't setting any variables required. You can remove this line as a result.
The true compiler flags for OpenMP are being set in src/Makevars:
thank you! I removed // [[Rcpp::plugins(openmp).
It's unfortunate that MacOS users need to invest so much effort to install and recompile the package to benefit from OpenMP support, but at least it runs.
Nino,
Hope all is well. Glancing at the updated package, I think everything should now be in order for your CRAN submission.
That is, you are using an
#ifdef _OPENMP
to protect against including OpenMP headers (<omp.h>
) if they are absent from the crippled compiler inside a custommyomp.h
echoice2/src/myomp.h
Line 1 in 114108d
However, the next line down, you are including:
// [[Rcpp::plugins(openmp)
This plugin only works with the standalone Rcpp functions (
evalCpp()
,cppFunction()
, andsourceCpp()
). Within a package context, it isn't setting any variables required. You can remove this line as a result.The true compiler flags for
OpenMP
are being set insrc/Makevars
:echoice2/src/Makevars
Lines 2 to 3 in 114108d
In particular, note that
SHLIB_OPENMP_CXXFLAGS
appears twice over.The text was updated successfully, but these errors were encountered: