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

Change in behaviour of readLines with new R devel version #35

Closed vincentvanhees closed 11 months ago

vincentvanhees commented 1 year ago

With the change on R devel on 1 July 2023 https://developer.r-project.org/blosxom.cgi/R-devel/NEWS

readLines no longer behaves as it did before on our test file as it.

Warning messages: 1: In grep(pattern = "Serial", x = fh) : unable to translate '' to a wide string 2: In grep(pattern = "Serial", x = fh) : input string 21 is invalid

I am now working on a solution and will tag this issue.

vincentvanhees commented 1 year ago

It seems the issue is more complex and also relates to both functions readGenea and readWav. These are used for file formats that are hardly used nowadays. I think best solution is to (temporarily) deprecate their functionality in GGIR.

We could leave a note in the changelog that users who want to keep the functionality should contact maintainers to discuss how we can support the work need to fix the problem and ongoing maintenance.