Skip to content

new arg to gsum to allow gmean to ignore overflow warning#3796

Merged
mattdowle merged 3 commits intomasterfrom
gmean_overflow
Aug 30, 2019
Merged

new arg to gsum to allow gmean to ignore overflow warning#3796
mattdowle merged 3 commits intomasterfrom
gmean_overflow

Conversation

@MichaelChirico
Copy link
Copy Markdown
Member

Closes #986

Seems to me this is the way to go, the other ways (e.g. rewrite gmean without using gsum are pretty prohibitive for kind of edge case)

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 28, 2019

Codecov Report

Merging #3796 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3796      +/-   ##
==========================================
+ Coverage   99.41%   99.41%   +<.01%     
==========================================
  Files          71       71              
  Lines       13246    13247       +1     
==========================================
+ Hits        13169    13170       +1     
  Misses         77       77
Impacted Files Coverage Δ
src/gsumm.c 100% <100%> (ø) ⬆️
R/data.table.R 100% <100%> (ø) ⬆️

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 88f036a...d39ed28. Read the comment docs.

@HughParsonage
Copy link
Copy Markdown
Member

Recommend removing the warning altogether. Can't think of circumstances where it would be necessary or useful.

@mattdowle mattdowle added this to the 1.12.4 milestone Aug 30, 2019
@mattdowle mattdowle merged commit e6aeb22 into master Aug 30, 2019
@mattdowle mattdowle deleted the gmean_overflow branch August 30, 2019 20:20
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.

Unnecessary warning from gmean about sum greater than integer can hold

4 participants