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

Issue #58 Don't print error when more data is requested from readGENEActiv() than is available in the file #59

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

l-k-
Copy link
Collaborator

@l-k- l-k- commented Feb 8, 2024

Fixes #58

Whenever readGENEActiv() got a request to read more data than what was left in the file, it used to print an error when the end of file was reached. The error was "data error at i = %d: %s i: <...> stoll: no conversion", in red; this made it look like something went wrong.

This PR removes this unnecessary error. Reaching the end of file in this scenario is normal behavior, and should not result in an error printed to Rcerr.

Checklist before merging:

  • Existing tests still work (check by running the test suite, e.g. from RStudio).
  • Added tests (if you added functionality) or fixed existing test (if you fixed a bug).
  • Updated or expanded the documentation.
  • Updated release notes in inst/NEWS.Rd with a user-readable summary. Please, include references to relevant issues or PR discussions.
  • Added your name to the contributors lists in the DESCRIPTION file, if you think you made a significant contribution.

@vincentvanhees vincentvanhees merged commit 0efae7e into main Feb 28, 2024
10 checks passed
@l-k- l-k- deleted the issue-58-stoll-no-conversion branch February 29, 2024 15:17
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.

"stoll: no conversion" error when GGIRread::readGENEActiv tries reading mode data than available
2 participants