-
Notifications
You must be signed in to change notification settings - Fork 993
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
Add numeric rounding value initialisation in test.data.table() #6103
Conversation
Add setNumericRounding(0) initialisation and restore user's value on exit.
Add test file for testing setNumericRounding(0) initialisation in test.data.table().
I've updated this comment because the check results changed, even though I didn't change anything. Originally, the I was surprised that the R-CMD-check failed, because before doing the PR I had built the package and run However, when I looked at the PR again the next day, it said both of the R-CMD-check checks were successful. So now the only failure was the Autocomment check, which tdhock explained is expected to fail for PRs that come from forks. |
it is normal that |
Thanks for the explanation @tdhock. |
LGTM! Two small tweaks & we can merge. |
Remove new test as requested by @MichaelChirico, to avoid nesting a test of test.data.table() in a script run by test.data.table().
Delete inst/tests/issue_6082_tests.Rraw because the test that used it was removed.
Move test.data.table() numeric rounding initialisation item from Bug Fixes to Notes as requested by @MichaelChirico.
@MichaelChirico Thanks for reviewing. I've deleted the test, deleted the file issue_6082_tests.Rraw, and moved the News item from Bug Fixes to Notes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks @markseeto! You should have received an invite to become a project Member. The main thing this does is give you rights to create branches on this repo directly to facilitate future collaboration -- please do so as it makes the review process a bit easier. Welcome! |
@MichaelChirico Thanks for approving and thanks for the invitation. |
Closes #6082
Added
setNumericRounding(0)
to initialise the numeric rounding value in test.data.table() to avoid failed tests if the user has set a different value. The user's value is restored on exit.