wadpac / GGIR

Code corresponding to R package GGIR
https://wadpac.github.io/GGIR/
Apache License 2.0
94 stars 60 forks source link

Speedup create_test_acc_csv (as only used for unit tests) #1108

Closed vincentvanhees closed 5 months ago

vincentvanhees commented 5 months ago

Fixes #963 by speeding up the create_test_acc_csv.R function. The writing of the file was by far the slowest component and I have now replaced this by data.table::fwrite.

No need to mention this in changelog as it does not affect GGIR behaviour for the user.

Checklist before merging:

If NEW GGIR parameter(s) were added then these NEW parameter(s) are :

If GGIR parameter(s) were deprecated these parameter(s) are:

vincentvanhees commented 5 months ago

merging now without peer-review, because only affects unit-testing and unit tests are all passing.