<div dir="ltr"><span style="caret-color: rgb(34, 34, 34); text-size-adjust: auto;">Dear All,<span class="gmail-Apple-converted-space"> </span></span><br><div><span style="caret-color: rgb(34, 34, 34); text-size-adjust: auto;"><span class="gmail-Apple-converted-space"><br></span></span></div><div><span style="caret-color: rgb(34, 34, 34); text-size-adjust: auto;"><span class="gmail-Apple-converted-space">I hope this email finds you well and this is a right place to ask this question.</span></span></div><div><span style="caret-color: rgb(34, 34, 34); text-size-adjust: auto;"><span class="gmail-Apple-converted-space"><br></span></span></div><div><span style="caret-color: rgb(34, 34, 34); text-size-adjust: auto;"><span class="gmail-Apple-converted-space">I recently submitted a package to CRAN (thanks for all supports); however, it has been archived. According to the email, the installation was not successful on some configurations. One of them is macOS (the other one is Solaris).<span class="gmail-Apple-converted-space"> </span><br>I am using Rcpp and OpenMP; here are the initial lines of the code:<br>--------------<br>#include <Rcpp.h><br>#include <omp.h><br>using namespace Rcpp;<br><br>// [[Rcpp::plugins(openmp)]]<br><br>// [[Rcpp::export]]<br>IntegerVector compute_closest_wgps_helper(NumericVector a,<br>                                          NumericVector b,<br>                                          NumericVector cd,<br>                                          double sc) {<span class="gmail-Apple-converted-space"> </span><br><br>------------------<br>Please see the following link for the entire code:<br><a href="https://github.com/fasrc/CausalGPS/blob/master/src/compute_closest_wgps_helper.cpp" target="_blank">https://github.com/fasrc/CausalGPS/blob/master/src/compute_closest_wgps_helper.cpp</a><br><br>The error that I receive on R-hub is:<br><br>-------------------<br>compute_closest_wgps_helper.cpp:2:10: fatal error: 'omp.h' file not found<br>#include <omp.h><br>         ^~~~~~~<br>1 error generated.<br>make: *** [compute_closest_wgps_helper.o] Error 1<br>ERROR: compilation failed for package ‘CausalGPS’<div><span style="text-size-adjust: auto;">-------------------</span><br style="text-size-adjust: auto;"><br style="text-size-adjust: auto;"><span style="text-size-adjust: auto;">Do you know a workaround for this issue?<span class="gmail-Apple-converted-space"> </span></span><br style="text-size-adjust: auto;"><span style="text-size-adjust: auto;">I understand some R developers do not use macOS; however, I have to address this comment.</span><br style="text-size-adjust: auto;"><br style="text-size-adjust: auto;"><span style="text-size-adjust: auto;">Best regards,<span class="gmail-Apple-converted-space"> </span></span><br style="text-size-adjust: auto;"><span style="text-size-adjust: auto;">Naeem Khoshnevis</span><br><div class="gmail-yj6qo" style="text-size-adjust: auto;"></div></div><br class="gmail-Apple-interchange-newline"></span></span></div></div>