Running ‘testthat.R’ [18s/41s]
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 121.0 MB
  
  trying URL 'https://github.com/THLfi/read.gt3x/releases/download/v1.0/SS_left_19.5.2017-05-22.gt3x.zip'
  Content type 'application/octet-stream' length 52409857 bytes (50.0 MB)
  ==================================================
  downloaded 50.0 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  :
    ..- attr(*, "tzone")="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  :
    ..- attr(*, "tzone")="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  :
    ..- attr(*, "tzone")="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  :
    ..- attr(*, "tzone")="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
  Saving _problems/test-read_old-75.R
  $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"
  
  Saving _problems/test_read_new-16.R
  [ FAIL 2 | WARN 0 | SKIP 4 | PASS 50 ]
  
  ══ 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-read_old.R:72:3'): Converting Old with .gz file ────────────────
  Error in `unzip(path, files = files, exdir = exdir)`: cannot open file '/tmp/RtmpVEAsGg/file12d10dcf065df/activity.bin': No space left on device
  Backtrace:
      ▆
   1. └─read.gt3x::read.gt3x(...) at test-read_old.R:72:3
   2.   └─read.gt3x::unzip.gt3x(...)
   3.     └─read.gt3x::unzip_single_gt3x(...)
   4.       ├─base::suppressWarnings(...)
   5.       │ └─base::withCallingHandlers(...)
   6.       └─utils::unzip(path, files = files, exdir = exdir)
  ── Error ('test_read_new.R:16:1'): (code run outside of `test_that()`) ─────────
  Error in `unzip(path, files = files, exdir = exdir)`: 'exdir' does not exist
  Backtrace:
      ▆
   1. └─read.gt3x::read.gt3x(gt3xfile) at test_read_new.R:16:1
   2.   └─read.gt3x::unzip.gt3x(...)
   3.     └─read.gt3x::unzip_single_gt3x(...)
   4.       └─utils::unzip(path, files = files, exdir = exdir)
  
  [ FAIL 2 | WARN 0 | SKIP 4 | PASS 50 ]
  Error:
  ! Test failures.
  Execution halted