* using log directory 'd:/Rcompile/CRANpkg/local/4.3/read.gt3x.Rcheck'
* using R version 4.3.3 (2024-02-29 ucrt)
* using platform: x86_64-w64-mingw32 (64-bit)
* R was compiled by
    gcc.exe (GCC) 12.3.0
    GNU Fortran (GCC) 12.3.0
* running under: Windows Server 2022 x64 (build 20348)
* using session charset: UTF-8
* checking for file 'read.gt3x/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'read.gt3x' version '1.2.0'
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'read.gt3x' can be installed ... OK
* used C++ compiler: 'g++.exe (GCC) 12.3.0'
* checking installed package size ... OK
* checking package directory ... OK
* checking 'build' directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... [0s] OK
* checking whether the package can be loaded with stated dependencies ... [0s] OK
* checking whether the package can be unloaded cleanly ... [1s] OK
* checking whether the namespace can be loaded with stated dependencies ... [0s] OK
* checking whether the namespace can be unloaded cleanly ... [1s] OK
* checking loading without being on the library search path ... [1s] OK
* checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [4s] OK
* checking Rd files ... [1s] OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking line endings in shell scripts ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking pragmas in C/C++ headers and code ... OK
* checking compiled code ... OK
* checking installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ... [3s] OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ... [343s] ERROR
  Running 'testthat.R' [343s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(read.gt3x)
  > 
  > test_check("read.gt3x")
  trying URL 'https://github.com/THLfi/read.gt3x/releases/download/v1.0/EE_left_29.5.2017-05-30.gt3x.zip'
  Content type 'application/octet-stream' length 126907117 bytes (121.0 MB)
  ===============================
  downloaded 75.7 MB
  
  trying URL 'https://ndownloader.figshare.com/files/21855801'
  Content type 'application/gzip' length 6650300 bytes (6.3 MB)
  ==================================================
  downloaded 6.3 MB
  
  trying URL 'https://ndownloader.figshare.com/files/25557302'
  Content type 'application/gzip' length 6094528 bytes (5.8 MB)
  ==================================================
  downloaded 5.8 MB
  
  GT3X information
   $ Serial Number     :"MRA1DXXXXXXXX"
   $ Device Type       :"ActiSleepPlus"
   $ Firmware          :"2.4.0"
   $ Battery Voltage   :"4.2"
   $ Sample Rate       :30
   $ Start Date        : POSIXct, format: "2012-04-04 13:29:00"
   $ Stop Date         : POSIXct, format: "2012-04-05 13:29:00"
   $ Download Date     : POSIXct, format: "2012-04-05 16:19:16"
   $ Board Revision    :"3"
   $ Subject Name      :"ActiSleepPlus"
   $ Sex               :"Male"
   $ Height            :"172.72"
   $ Mass              :"69.8532250385783"
   $ Age               :"42"
   $ Race              :"White / Caucasian"
   $ Limb              :"Wrist"
   $ Side              :"Right"
   $ Dominance         :"Dominant"
   $ DateOfBirth       :"621132192000000000"
   $ Serial Prefix     :"MRA"
   $ Last Sample Time  : 'POSIXct' num(0) 
   - attr(*, "tzone")= chr "GMT"
   $ Acceleration Scale:341
   $ Acceleration Min  :"-6.0"
   $ Acceleration Max  :"6.0"
  Sample size: 2592000
  Scaling...
  Lux Sample size: 2592000
  Sampling Rate: 30Hz
  Firmware Version: 2.4.0
  Serial Number Prefix: MRA
            X      Y      Z
  [1,] -0.935 -0.320 -0.141
  [2,] -0.974 -0.270 -0.220
  [3,] -0.891 -0.279 -0.167
  [4,] -0.862 -0.249 -0.196
  [5,] -0.877 -0.205 -0.393
  [6,] -0.534 -0.246 -0.595
  Sampling Rate: 30Hz
  Firmware Version: 2.4.0
  Serial Number Prefix: MRA
                   time      X      Y      Z
  1 2012-04-04 13:29:00 -0.935 -0.320 -0.141
  2 2012-04-04 13:29:00 -0.974 -0.270 -0.220
  3 2012-04-04 13:29:00 -0.891 -0.279 -0.167
  4 2012-04-04 13:29:00 -0.862 -0.249 -0.196
  5 2012-04-04 13:29:00 -0.877 -0.205 -0.393
  6 2012-04-04 13:29:00 -0.534 -0.246 -0.595
  GT3X information
   $ Serial Number     :"MRA1DXXXXXXXX"
   $ Device Type       :"ActiSleepPlus"
   $ Firmware          :"2.4.0"
   $ Battery Voltage   :"4.2"
   $ Sample Rate       :30
   $ Start Date        : POSIXct, format: "2012-04-04 13:29:00"
   $ Stop Date         : POSIXct, format: "2012-04-05 13:29:00"
   $ Download Date     : POSIXct, format: "2012-04-05 16:19:16.831"
   $ Board Revision    :"3"
   $ Subject Name      :"ActiSleepPlus"
   $ Sex               :"Male"
   $ Height            :"172.72"
   $ Mass              :"69.8532250385783"
   $ Age               :"42"
   $ Race              :"White / Caucasian"
   $ Limb              :"Wrist"
   $ Side              :"Right"
   $ Dominance         :"Dominant"
   $ DateOfBirth       :"621132192000000000"
   $ Serial Prefix     :"MRA"
   $ Last Sample Time  : 'POSIXct' num(0) 
   - attr(*, "tzone")= chr "GMT"
   $ Acceleration Scale:341
   $ Acceleration Min  :"-6.0"
   $ Acceleration Max  :"6.0"
  Sample size: 2592000
  Scaling...
  Lux Sample size: 2592000
  GT3X information
   $ Serial Number     :"MRA1DXXXXXXXX"
   $ Device Type       :"ActiSleepPlus"
   $ Firmware          :"2.4.0"
   $ Battery Voltage   :"4.2"
   $ Sample Rate       :30
   $ Start Date        : POSIXct, format: "2012-04-04 13:29:00"
   $ Stop Date         : POSIXct, format: "2012-04-05 13:29:00"
   $ Download Date     : POSIXct, format: "2012-04-05 16:19:16.831"
   $ Board Revision    :"3"
   $ Subject Name      :"ActiSleepPlus"
   $ Sex               :"Male"
   $ Height            :"172.72"
   $ Mass              :"69.8532250385783"
   $ Age               :"42"
   $ Race              :"White / Caucasian"
   $ Limb              :"Wrist"
   $ Side              :"Right"
   $ Dominance         :"Dominant"
   $ DateOfBirth       :"621132192000000000"
   $ Serial Prefix     :"MRA"
   $ Last Sample Time  : 'POSIXct' num(0) 
   - attr(*, "tzone")= chr "GMT"
   $ Acceleration Scale:341
   $ Acceleration Min  :"-6.0"
   $ Acceleration Max  :"6.0"
  Sample size: 2592000
  Scaling...
  Lux Sample size: 2592000
  trying URL 'https://github.com/THLfi/read.gt3x/files/3522749/GT3X%2B.01.day.gt3x.zip'
  Content type 'application/zip' length 3670545 bytes (3.5 MB)
  ==================================================
  downloaded 3.5 MB
  
  GT3X information
   $ Serial Number     :"NEO1DXXXXXXXX"
   $ Device Type       :"GT3XPlus"
   $ Firmware          :"2.5.0"
   $ Battery Voltage   :"4.22"
   $ Sample Rate       :30
   $ Start Date        : POSIXct, format: "2012-06-27 10:54:00"
   $ Stop Date         : POSIXct, format: "2012-06-28 11:54:00"
   $ Download Date     : POSIXct, format: "2012-06-28 16:25:52.814"
   $ Board Revision    :"4"
   $ Unexpected Resets :"0"
   $ Sex               :"Male"
   $ Height            :"172.72"
   $ Mass              :"69.8532249799612"
   $ Age               :"43"
   $ Race              :"White / Caucasian"
   $ Limb              :"Ankle"
   $ Side              :"Left"
   $ Dominance         :"Non-Dominant"
   $ DateOfBirth       :"621132192000000000"
   $ Subject Name      :"GT3XPlus"
   $ Serial Prefix     :"NEO"
   $ Last Sample Time  : 'POSIXct' num(0) 
   - attr(*, "tzone")= chr "GMT"
   $ Acceleration Scale:341
   $ Acceleration Min  :"-6.0"
   $ Acceleration Max  :"6.0"
  Sample size: 2700000
  Scaling...
  Lux Sample size: 2700000
  Sampling Rate: 30Hz
  Firmware Version: 2.5.0
  Serial Number Prefix: NEO
       X Y Z
  [1,] 0 0 0
  [2,] 0 0 0
  [3,] 0 0 0
  [4,] 0 0 0
  [5,] 0 0 0
  [6,] 0 0 0
  Sampling Rate: 30Hz
  Firmware Version: 2.5.0
  Serial Number Prefix: NEO
                   time X Y Z
  1 2012-06-27 10:54:00 0 0 0
  2 2012-06-27 10:54:00 0 0 0
  3 2012-06-27 10:54:00 0 0 0
  4 2012-06-27 10:54:00 0 0 0
  5 2012-06-27 10:54:00 0 0 0
  6 2012-06-27 10:54:00 0 0 0
  GT3X information
   $ Serial Number     :"NEO1DXXXXXXXX"
   $ Device Type       :"GT3XPlus"
   $ Firmware          :"2.5.0"
   $ Battery Voltage   :"4.22"
   $ Sample Rate       :30
   $ Start Date        : POSIXct, format: "2012-06-27 10:54:00"
   $ Stop Date         : POSIXct, format: "2012-06-28 11:54:00"
   $ Download Date     : POSIXct, format: "2012-06-28 16:25:52.814"
   $ Board Revision    :"4"
   $ Unexpected Resets :"0"
   $ Sex               :"Male"
   $ Height            :"172.72"
   $ Mass              :"69.8532249799612"
   $ Age               :"43"
   $ Race              :"White / Caucasian"
   $ Limb              :"Ankle"
   $ Side              :"Left"
   $ Dominance         :"Non-Dominant"
   $ DateOfBirth       :"621132192000000000"
   $ Subject Name      :"GT3XPlus"
   $ Serial Prefix     :"NEO"
   $ Last Sample Time  : 'POSIXct' num(0) 
   - attr(*, "tzone")= chr "GMT"
   $ Acceleration Scale:341
   $ Acceleration Min  :"-6.0"
   $ Acceleration Max  :"6.0"
  Sample size: 2700000
  Scaling...
  Lux Sample size: 2700000
  $name_gt3x
  [1] "PU3_CLE2B21130054_2017-03-16.gt3x.gz"
  
  $download_url_gt3x
  [1] "https://ndownloader.figshare.com/files/21855807"
  
  $id
  [1] "PU3"
  
  $serial
  [1] "CLE2B21130054"
  
  $name_csv
  [1] "PU3_CLE2B21130054_2017-03-16.csv.gz"
  
  $download_url_csv
  [1] "https://ndownloader.figshare.com/files/24488492"
  
  GT3X information
   $ Serial Number     :"TAS1H30182785"
   $ Device Type       :"Link"
   $ Firmware          :"1.7.2"
   $ Battery Voltage   :"4.18"
   $ Sample Rate       :100
   $ Start Date        : POSIXct, format: "2019-09-17 18:40:00"
   $ Stop Date         : POSIXct, format: "2019-09-18 19:00:00"
   $ Last Sample Time  : POSIXct, format: "2019-09-17 19:20:05"
   $ TimeZone          :"-04:00:00"
   $ Download Date     : POSIXct, format: "2019-09-17 19:20:05"
   $ Board Revision    :"8"
   $ Unexpected Resets :"0"
   $ Acceleration Scale:256
   $ Acceleration Min  :"-8.0"
   $ Acceleration Max  :"8.0"
   $ Subject Name      :"suffix_85"
   $ Serial Prefix     :"TAS"
  Reading Stream...
  ---GT3X PARAMETERS
  address: 0 key: 6 value: 1
  address: 0 key: 7 value: 54703161
  address: 0 key: 8 value: 8
  address: 0 key: 9 value: 1534154836
  address: 0 key: 13 value: 17235970
  address: 0 key: 16 value: 3791650816
  address: 0 key: 20 value: 0
  address: 0 key: 21 value: 0
  address: 0 key: 22 value: 0
  address: 0 key: 23 value: 0
  address: 0 key: 26 value: 2
  address: 0 key: 28 value: 262013
  address: 0 key: 29 value: 255
  address: 0 key: 32 value: 16908288
  address: 0 key: 37 value: 1024
  address: 0 key: 38 value: 0
  address: 0 key: 49 value: 2048
  address: 0 key: 50 value: 88181047
  address: 0 key: 51 value: 6.82667
  address: 0 key: 55 value: 256
  address: 0 key: 57 value: 333.87
  address: 0 key: 58 value: 21
  address: 0 key: 61 value: 2
  address: 1 key: 0 value: 0
  address: 1 key: 1 value: 872668711
  address: 1 key: 2 (features)  value: 388
  address: 1 key: 3 value: 1
  address: 1 key: 4 value: 4294967131
  address: 1 key: 5 value: 4294967095
  address: 1 key: 6 value: 4294967149
  address: 1 key: 7 value: 298
  address: 1 key: 8 value: 286
  address: 1 key: 9 value: 300
  address: 1 key: 10 value: 100
  address: 1 key: 12 (start time)  value: 1568745600
  address: 1 key: 13 value: 1568833200
  address: 1 key: 14 value: 1568745556
  address: 1 key: 15 value: 74
  address: 1 key: 16 value: 40
  address: 1 key: 17 value: 72
  address: 1 key: 20 value: 0
  address: 1 key: 21 value: 0
  address: 1 key: 33 value: 60000
  address: 1 key: 34 value: 4294965247
  address: 1 key: 35 value: 4294965190
  address: 1 key: 36 value: 4294965237
  address: 1 key: 37 value: 2051
  address: 1 key: 38 value: 2000
  address: 1 key: 39 value: 2048
  address: 1 key: 40 value: 0
  address: 1 key: 41 value: 1
  address: 1 key: 42 value: 0
  address: 1 key: 43 value: 4294967283
  address: 1 key: 44 value: 0
  address: 1 key: 45 value: 0
  address: 1 key: 46 value: 0
  ---END PARAMETERS
  
  param_start_time: 1568745600
  First ACTIVTY2 packet, sample size: 100
  imputing 400 values at index 1000 
  imputing 10500 values at index 26100 
  imputing 55400 values at index 37700 
  imputing 112600 values at index 94500 
  imputing 3300 values at index 209700 
  imputing 100 values at index 214000 
  Activity with Sample Size of 0
  payload start: 1568747741
  total_records: 214100
  max_samples: 240500
  imputing 100 values at index 214100 
  imputing 500 values at index 214200 
  Activity with Sample Size of 0
  payload start: 1568747759
  total_records: 215900
  max_samples: 240500
  imputing 100 values at index 215900 
  Total Records: 216000
  Scaling...
  imputing 24500 values at index 216000 
  Creating dimnames 
  CPP returning 
  [ FAIL 1 | WARN 2 | SKIP 4 | PASS 69 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-index_out_of_bounds.R:4:3',
    'test-index_out_of_bounds.R:28:3', 'test-reordering.R:28:3',
    'test-reordering.R:109:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-datapath.R:2:3'): Getting datapath ─────────────────────────────
  Error in `download.file(url, temp, method = "auto", quiet = !verbose, mode = "wb")`: download from 'https://github.com/THLfi/read.gt3x/releases/download/v1.0/EE_left_29.5.2017-05-30.gt3x.zip' failed
  Backtrace:
      ▆
   1. └─read.gt3x::gt3x_datapath() at test-datapath.R:2:3
   2.   └─read.gt3x::gt3x_download(...)
   3.     └─utils::download.file(...)
  
  [ FAIL 1 | WARN 2 | SKIP 4 | PASS 69 ]
  Error: Test failures
  Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in 'inst/doc' ... OK
* checking re-building of vignette outputs ... [6s] OK
* checking PDF version of manual ... [17s] OK
* checking HTML version of manual ... [3s] OK
* DONE
Status: 1 ERROR