Running ‘testthat.R’ [9s/13s]
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")
    adding: tmp/RtmpCTaW.h/working_dir/RtmpAAay0w/test_ts_2021_02_07.json (deflated 82%)
    adding: tmp/RtmpCTaW.h/working_dir/RtmpAAay0w/test_ts_2021_02_07.json (deflated 82%)
    adding: tmp/RtmpCTaW.h/working_dir/RtmpAAay0w/test_ts_2021_02_07.json (deflated 82%)
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (testWriteTimeseries.R:302:7): differing lengths work ───────────────
  Attempt to override column 1 <<date>> of inherent type 'string' down to 'float64' ignored. Only overrides to a higher type are currently supported. If this was intended, please coerce to the lower type afterwards.
  Backtrace:
   1. tstools::read_ts("faulty.csv") testWriteTimeseries.R:302:6
   2. tstools:::read_ts.csv(file, sep, skip = skip)
   3. data.table::fread(...)
  ── Warning (testWriteTimeseries.R:302:7): differing lengths work ───────────────
  Attempt to override column 1 <<date>> of inherent type 'string' down to 'float64' ignored. Only overrides to a higher type are currently supported. If this was intended, please coerce to the lower type afterwards.
  Backtrace:
   1. tstools::read_ts("faulty.csv") testWriteTimeseries.R:302:6
   2. tstools:::read_ts.csv(file, sep, skip = skip)
   3. data.table::fread(...)
  ── Warning (testWriteTimeseries.R:302:7): differing lengths work ───────────────
  Attempt to override column 1 <<date>> of inherent type 'string' down to 'float64' ignored. Only overrides to a higher type are currently supported. If this was intended, please coerce to the lower type afterwards.
  Backtrace:
   1. tstools::read_ts("faulty.csv") testWriteTimeseries.R:302:6
   2. tstools:::read_ts.csv(file, sep, skip = skip)
   3. data.table::fread(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (testWriteTimeseries.R:252:7): imports work ───────────────────────────
  Error: Could not detect file format. Please supply format parameter!
  Valid file formats are csv, xlsx, json and zip.
  Backtrace:
      █
   1. ├─testthat::expect_equal(ts, read_ts(csv_wide_name)) testWriteTimeseries.R:252:6
   2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tstools::read_ts(csv_wide_name)
  ── Error (testWriteTimeseries.R:252:7): imports work ───────────────────────────
  Error: Could not detect file format. Please supply format parameter!
  Valid file formats are csv, xlsx, json and zip.
  Backtrace:
      █
   1. ├─testthat::expect_equal(ts, read_ts(csv_wide_name)) testWriteTimeseries.R:252:6
   2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tstools::read_ts(csv_wide_name)
  ── Error (testWriteTimeseries.R:252:7): imports work ───────────────────────────
  Error: Could not detect file format. Please supply format parameter!
  Valid file formats are csv, xlsx, json and zip.
  Backtrace:
      █
   1. ├─testthat::expect_equal(ts, read_ts(csv_wide_name)) testWriteTimeseries.R:252:6
   2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tstools::read_ts(csv_wide_name)
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 99 ]
  Error: Test failures
  Execution halted