Skip to content

Conversation

eddelbuettel
Copy link
Member

As discussed in #1074, the behavior of R_alloc() seems to be less than ideal, and a simple replacement of an IntegerVector instantiation appears to help in two places.

Checklist

  • Code compiles correctly
  • R CMD check still passes all tests
  • Prefereably, new tests were added which fail without the change
  • Document the changes by file in ChangeLog

@codecov-io
Copy link

Codecov Report

Merging #1075 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1075   +/-   ##
=======================================
  Coverage   95.61%   95.61%           
=======================================
  Files          64       64           
  Lines        2782     2782           
=======================================
  Hits         2660     2660           
  Misses        122      122           

@eddelbuettel eddelbuettel changed the title Use an excplicit vector rather than R_alloc in sample Use an explicit vector rather than R_alloc in sample Apr 25, 2020
@eddelbuettel eddelbuettel requested a review from kevinushey April 25, 2020 12:57
@eddelbuettel
Copy link
Member Author

@kevinushey Thanks for the hint on no_init() which I already added. Anything else, or good to go?

Copy link
Contributor

@kevinushey kevinushey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eddelbuettel eddelbuettel merged commit bb6017c into master Apr 25, 2020
@eddelbuettel eddelbuettel deleted the bugfix/1074 branch April 25, 2020 15:53
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