Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch one PI to M_PI to support STRICT_R_HEADERS #118

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

eddelbuettel
Copy link
Contributor

Dear s2 team,

The Rcpp team is trying to move towards defining STRICT_R_HEADERS by default. Please the issue ticket at RcppCore/Rcpp#1158 for motivation and history. In late April and early May, we identified around 51 packages needing changes (which we generally sent by PR or, in case of no known git repo, emailed patch). We are thrilled to report that 38 have already made the changes, including some on CRAN. We also accomodated one first fix in Rcpp itself -- the cfloat (or float.h) header is needed for the floating limits such as DBL_MAX. A common remaining issue is use of PI.

And it appears that your most recent package change introduced a mild regression. One line of code refers to PI where M_PI would make us whole. This PR changes this. It also adds a define for STRICT_R_HEADERS to test this, you are more than welcome to remove that define or place it elsewhere. I can also remove it from the PR if you like.

As discussed in RcppCore/Rcpp#1158, this is not urgent, but we of course welcome relatively prompt resolution at CRAN so when we continue to test for this (at a likely montly pace) so we do not get false positives as we will continue to use the CRAN set of packages (as opposed to hand-curated set of upstream dev versions).

Many thanks for your help, and I hope you continue to find Rcpp helpful. Please don't hesitate to ask if you have any questions.

@codecov-commenter
Copy link

Codecov Report

Merging #118 (d5cbc99) into master (6e344ad) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #118   +/-   ##
=======================================
  Coverage   94.04%   94.04%           
=======================================
  Files          40       40           
  Lines        2987     2987           
=======================================
  Hits         2809     2809           
  Misses        178      178           
Impacted Files Coverage Δ
src/s2-transformers.cpp 96.70% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e344ad...d5cbc99. Read the comment docs.

@edzer edzer merged commit e39716e into r-spatial:master Jun 2, 2021
@edzer
Copy link
Member

edzer commented Jun 2, 2021

Thanks a lot, Dirk!

@eddelbuettel
Copy link
Contributor Author

Thanks for the speedy turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants