-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
I was using GENEActiv_testfile.bin to do some testing, but it seems like readGENEActiv doesn't read it correctly? Should this file be able to be read?
file = system.file("testfiles", "GENEActiv_testfile.bin", package = "GGIR")
res = GGIRread::readGENEActiv(file)
#> WARNING: numBlocksTotal read in from header is negative, file corrupted?print(res)
#> $header
#> $header$serial_number
#> [1] NA
#>
#> $header$firmware
#> [1] NA
#>
#> $header$tzone
#> [1] NA
#>
#> $header$ReadOK
#> [1] 1
#>
#> $header$SampleRate
#> [1] -1
#>
#> $header$ReadErrors
#> [1] 0
#>
#> $header$numBlocksTotal
#> [1] 1.844674e+19
#>
#> $header$StarTime
#> [1] NA
#>
#> $header$Handedness
#> [1] NA
#>
#> $header$RecordingID
#> [1] NA
#>
#> $header$DeviceLocation
#> [1] NA
#>
#> $header$DeviceModel
#> [1] NA
#>
#>
#> $data.out
#> [1] time x y z light temperature
#> <0 rows> (or 0-length row.names)Created on 2024-06-06 with reprex v2.1.0
Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#> setting value
#> version R version 4.4.0 (2024-04-24)
#> os macOS Sonoma 14.4.1
#> system x86_64, darwin20
#> ui X11
#> language (EN)
#> collate en_US.UTF-8
#> ctype en_US.UTF-8
#> tz America/New_York
#> date 2024-06-06
#> pandoc 3.1.11.1 @ /usr/local/bin/ (via rmarkdown)
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────
#> package * version date (UTC) lib source
#> cli 3.6.2 2023-12-11 [1] CRAN (R 4.4.0)
#> digest 0.6.35 2024-03-11 [1] CRAN (R 4.4.0)
#> evaluate 0.23 2023-11-01 [1] CRAN (R 4.4.0)
#> fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.4.0)
#> fs 1.6.4 2024-04-25 [1] CRAN (R 4.4.0)
#> GGIRread 1.0.1 2024-06-03 [1] Github (wadpac/GGIRread@fc0bf08)
#> glue 1.7.0 2024-01-09 [1] CRAN (R 4.4.0)
#> htmltools 0.5.8.1 2024-04-04 [1] CRAN (R 4.4.0)
#> knitr 1.46 2024-04-06 [1] CRAN (R 4.4.0)
#> lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.4.0)
#> magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.4.0)
#> purrr 1.0.2 2023-08-10 [1] CRAN (R 4.4.0)
#> R.cache 0.16.0 2022-07-21 [1] CRAN (R 4.4.0)
#> R.methodsS3 1.8.2 2022-06-13 [1] CRAN (R 4.4.0)
#> R.oo 1.26.0 2024-01-24 [1] CRAN (R 4.4.0)
#> R.utils 2.12.3 2023-11-18 [1] CRAN (R 4.4.0)
#> Rcpp 1.0.12 2024-01-09 [1] CRAN (R 4.4.0)
#> reprex 2.1.0 2024-01-11 [1] CRAN (R 4.4.0)
#> rlang 1.1.3 2024-01-10 [1] CRAN (R 4.4.0)
#> rmarkdown 2.27 2024-05-17 [1] CRAN (R 4.4.0)
#> rstudioapi 0.16.0 2024-03-24 [1] CRAN (R 4.4.0)
#> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.4.0)
#> styler 1.10.3 2024-04-07 [1] CRAN (R 4.4.0)
#> vctrs 0.6.5 2023-12-01 [1] CRAN (R 4.4.0)
#> withr 3.0.0 2024-01-16 [1] CRAN (R 4.4.0)
#> xfun 0.44 2024-05-15 [1] CRAN (R 4.4.0)
#> yaml 2.3.8 2023-12-11 [1] CRAN (R 4.4.0)
#>
#> [1] /Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library
#>
#> ──────────────────────────────────────────────────────────────────────────────Metadata
Metadata
Assignees
Labels
No labels