wadpac / GGIRread

Functions for reading accelerometer data files
https://CRAN.R-project.org/package=GGIRread
Apache License 2.0
5 stars 3 forks source link

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

Closed l-k- closed 7 months ago

l-k- commented 7 months ago

Fixes https://github.com/wadpac/GGIRread/issues/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: