Running ‘testthat.R’ [63s/98s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(timetk)
  > 
  > test_check("timetk")
  ── 1. Error: (unknown) (@test_tk_index.R#9)  ───────────────────────────────────
  order.by requires an appropriate time-based object
  1: tk_xts(AAPL_tbl, select = -date, date_var = date) at testthat/test_tk_index.R:9
  2: tk_xts_(data = data, select = select, date_var = date_var, silent = silent, ...)
  3: tk_xts_.default(data = data, select = select, date_var = date_var, silent = silent, 
         ...)
  4: xts::xts(data, ...)
  5: stop("order.by requires an appropriate time-based object")
  
  ── 2. Failure: tbl tot tbl test returns tibble with correct rows and columns. (@
  nrow(test_tbl_1) not equal to 504.
  1/1 mismatches
  [1] 1 - 504 == -503
  
  ── 3. Failure: tbl tot tbl test returns tibble with correct rows and columns. (@
  ncol(test_tbl_1) not equal to 7.
  1/1 mismatches
  [1] 1 - 7 == -6
  
  ── 4. Failure: tbl tot tbl test returns tibble with correct rows and columns. (@
  colnames(test_tbl_1)[[1]] not equal to "date".
  1/1 mismatches
  x[1]: "data"
  y[1]: "date"
  
  ── 5. Error: (unknown) (@test_tk_tbl.R#21)  ────────────────────────────────────
  order.by requires an appropriate time-based object
  1: tk_xts(AAPL_tbl, select = -date, date_var = date) at testthat/test_tk_tbl.R:21
  2: tk_xts_(data = data, select = select, date_var = date_var, silent = silent, ...)
  3: tk_xts_.default(data = data, select = select, date_var = date_var, silent = silent, 
         ...)
  4: xts::xts(data, ...)
  5: stop("order.by requires an appropriate time-based object")
  
  ── 6. Error: (unknown) (@test_tk_ts.R#5)  ──────────────────────────────────────
  order.by requires an appropriate time-based object
  1: tk_xts(AAPL_tbl, silent = TRUE) at testthat/test_tk_ts.R:5
  2: tk_xts_(data = data, select = select, date_var = date_var, silent = silent, ...)
  3: tk_xts_.default(data = data, select = select, date_var = date_var, silent = silent, 
         ...)
  4: xts::xts(data, ...)
  5: stop("order.by requires an appropriate time-based object")
  
  ── 7. Error: (unknown) (@test_tk_xts.R#5)  ─────────────────────────────────────
  order.by requires an appropriate time-based object
  1: tk_zoo(AAPL_tbl, silent = TRUE) at testthat/test_tk_xts.R:5
  2: tk_xts_(data = data, select = select, date_var = date_var, silent = silent, ...)
  3: tk_xts_.default(data = data, select = select, date_var = date_var, silent = silent, 
         ...)
  4: xts::xts(data, ...)
  5: stop("order.by requires an appropriate time-based object")
  
  ── 8. Error: (unknown) (@test_tk_zoo.R#5)  ─────────────────────────────────────
  order.by requires an appropriate time-based object
  1: tk_xts(AAPL_tbl, silent = TRUE) at testthat/test_tk_zoo.R:5
  2: tk_xts_(data = data, select = select, date_var = date_var, silent = silent, ...)
  3: tk_xts_.default(data = data, select = select, date_var = date_var, silent = silent, 
         ...)
  4: xts::xts(data, ...)
  5: stop("order.by requires an appropriate time-based object")
  
  ── 9. Error: (unknown) (@test_tk_zooreg.R#5)  ──────────────────────────────────
  order.by requires an appropriate time-based object
  1: tk_xts(AAPL_tbl, silent = TRUE) at testthat/test_tk_zooreg.R:5
  2: tk_xts_(data = data, select = select, date_var = date_var, silent = silent, ...)
  3: tk_xts_.default(data = data, select = select, date_var = date_var, silent = silent, 
         ...)
  4: xts::xts(data, ...)
  5: stop("order.by requires an appropriate time-based object")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 96 | SKIPPED: 0 | WARNINGS: 10 | FAILED: 9 ]
  1. Error: (unknown) (@test_tk_index.R#9) 
  2. Failure: tbl tot tbl test returns tibble with correct rows and columns. (@test_tk_tbl.R#14) 
  3. Failure: tbl tot tbl test returns tibble with correct rows and columns. (@test_tk_tbl.R#15) 
  4. Failure: tbl tot tbl test returns tibble with correct rows and columns. (@test_tk_tbl.R#16) 
  5. Error: (unknown) (@test_tk_tbl.R#21) 
  6. Error: (unknown) (@test_tk_ts.R#5) 
  7. Error: (unknown) (@test_tk_xts.R#5) 
  8. Error: (unknown) (@test_tk_zoo.R#5) 
  9. Error: (unknown) (@test_tk_zooreg.R#5) 
  
  Error: testthat unit tests failed
  Execution halted