Running ‘testthat.R’ [7s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tstools)
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  > 
  > test_check("tstools")
  ── 1. Error: XLSX wide export works (@testWriteTimeseries.R#98)  ───────────────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
  ── 2. Error: XLSX transposed export works (@testWriteTimeseries.R#117)  ────────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
  ── 3. Error: XLSX long export works (@testWriteTimeseries.R#140)  ──────────────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
    adding: home/hornik/tmp/scratch/RtmplFqXKE/test_ts_2019_11_06.json (deflated 82%)
  ── 4. Error: imports work (@testWriteTimeseries.R#255)  ────────────────────────
  File does not exist.
  Backtrace:
   1. testthat::expect_equal(ts, read_ts(xlsx_wide_name))
   4. tstools::read_ts(xlsx_wide_name)
   5. tstools:::read_ts.xlsx(file)
   7. openxlsx:::read.xlsx.default(file)
  
  ── 5. Error: XLSX wide export works (@testWriteTimeseries.R#98)  ───────────────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
  ── 6. Error: XLSX transposed export works (@testWriteTimeseries.R#117)  ────────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
  ── 7. Error: XLSX long export works (@testWriteTimeseries.R#140)  ──────────────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
    adding: home/hornik/tmp/scratch/RtmplFqXKE/test_ts_2019_11_06.json (deflated 82%)
  ── 8. Error: imports work (@testWriteTimeseries.R#255)  ────────────────────────
  File does not exist.
  Backtrace:
   1. testthat::expect_equal(ts, read_ts(xlsx_wide_name))
   4. tstools::read_ts(xlsx_wide_name)
   5. tstools:::read_ts.xlsx(file)
   7. openxlsx:::read.xlsx.default(file)
  
  ── 9. Error: XLSX wide export works (@testWriteTimeseries.R#98)  ───────────────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
  ── 10. Error: XLSX transposed export works (@testWriteTimeseries.R#117)  ───────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
  ── 11. Error: XLSX long export works (@testWriteTimeseries.R#140)  ─────────────
  WEIRD RETURN VALUE: (nil)
  Backtrace:
   1. tstools::write_ts(...)
   2. openxlsx::write.xlsx(tsdf, paste0(fname, ".xlsx"))
   3. openxlsx::saveWorkbook(wb = wb, file = file, overwrite = overwrite)
   4. wb$saveWorkbook()
   5. openxlsx:::write_file(...)
  
    adding: home/hornik/tmp/scratch/RtmplFqXKE/test_ts_2019_11_06.json (deflated 82%)
  ── 12. Error: imports work (@testWriteTimeseries.R#255)  ───────────────────────
  File does not exist.
  Backtrace:
   1. testthat::expect_equal(ts, read_ts(xlsx_wide_name))
   4. tstools::read_ts(xlsx_wide_name)
   5. tstools:::read_ts.xlsx(file)
   7. openxlsx:::read.xlsx.default(file)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 84 | SKIPPED: 0 | WARNINGS: 15 | FAILED: 12 ]
  1. Error: XLSX wide export works (@testWriteTimeseries.R#98) 
  2. Error: XLSX transposed export works (@testWriteTimeseries.R#117) 
  3. Error: XLSX long export works (@testWriteTimeseries.R#140) 
  4. Error: imports work (@testWriteTimeseries.R#255) 
  5. Error: XLSX wide export works (@testWriteTimeseries.R#98) 
  6. Error: XLSX transposed export works (@testWriteTimeseries.R#117) 
  7. Error: XLSX long export works (@testWriteTimeseries.R#140) 
  8. Error: imports work (@testWriteTimeseries.R#255) 
  9. Error: XLSX wide export works (@testWriteTimeseries.R#98) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted