Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [24s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(rlang)
  > library(tibble)
  > library(lubridate)
  
  Attaching package: 'lubridate'
  
  The following object is masked from 'package:base':
  
      date
  
  > library(testthat)
  
  Attaching package: 'testthat'
  
  The following objects are masked from 'package:rlang':
  
      is_false, is_null, is_true
  
  > library(tsibble)
  
  Attaching package: 'tsibble'
  
  The following objects are masked from 'package:lubridate':
  
      interval, new_interval
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > set.seed(2018)
  > test_check("tsibble")
  ── 1. Failure: key_by() (@test-key.R#4)  ───────────────────────────────────────
  `key_by(pedestrian)` threw an error with unexpected message.
  Expected match: "is not a valid tsibble."
  Actual message: "x is not a tsibble."
  
  ── 2. Error: key_by() (@test-key.R#6)  ─────────────────────────────────────────
  no applicable method for 'key_by' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"
  1: expect_equal(key_vars(key_by(sx)), character(0)) at testthat/test-key.R:6
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: key_vars(key_by(sx))
  5: key_by(sx)
  
  ── 3. Error: rename_tsibble() (@test-key.R#12)  ────────────────────────────────
  no applicable method for 'key_by' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"
  1: pedestrian %>% filter(Sensor == "Birrarung Marr") %>% key_by() at testthat/test-key.R:12
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: key_by(.)
  
  ── 4. Failure: pillar S3 methods (@test-pillar.R#19)  ──────────────────────────
  type_sum(pedestrian) not equal to "tsibble".
  1/1 mismatches
  x[1]: "tibble"
  y[1]: "tsibble"
  
  ── 5. Failure: nest() (@test-tidyr.R#66)  ──────────────────────────────────────
  `pedestrian %>% nest(-Date_Time)` did not throw an error.
  
  ── 6. Failure: nest() (@test-tidyr.R#67)  ──────────────────────────────────────
  `pedestrian %>% nest(Sensor)` did not throw an error.
  
  ── 7. Failure: nest() (@test-tidyr.R#77)  ──────────────────────────────────────
  `nested_ped` inherits from `tbl_df/tbl/data.frame` not `lst_ts`.
  
  ── 8. Error: nest() (@test-tidyr.R#78)  ────────────────────────────────────────
  no applicable method for 'key_vars' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"
  1: expect_equal(key_vars(nested_ped$data[[1]]), character(0)) at testthat/test-tidyr.R:78
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: key_vars(nested_ped$data[[1]])
  
  A tsibble: 10 x 2 [10µs] <?>── 9. Error: POSIXt with 1 second interval (@test-tsibble.R#80)  ───────────────
  no applicable method for 'n_keys' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"
  1: expect_equal(n_keys(tsbl), 1) at testthat/test-tsibble.R:80
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: n_keys(tsbl)
  
  ── 10. Error: as_tsibble.tbl_ts & as_tsibble.grouped_df (@test-tsibble.R#312)  ─
  Can't determine the index and please specify argument `index`.
  1: as_tsibble(pedestrian) at testthat/test-tsibble.R:312
  2: as_tsibble.tbl_df(pedestrian)
  3: build_tsibble(x, key = !!enquo(key), index = !!index, regular = regular, validate = validate)
  4: validate_index(tbl, qindex)
  5: abort("Can't determine the index and please specify argument `index`.")
  
  ── 11. Failure: build_tsibble() (@test-tsibble.R#348)  ─────────────────────────
  `pedestrian %>% mutate(Date_Time = as.character(Date_Time))` did not throw an error.
  
  ── 12. Failure: a tsibble with more than one measured vars (@test-tsibble2ts.R#4
  `as.ts(pedestrian)` did not throw an error.
  
  ── 13. Failure: a tsibble with more than one measured vars (@test-tsibble2ts.R#4
  `as.ts(pedestrian, value = Date_Time)` did not throw an error.
  
  ── 14. Failure: a tsibble with more than one measured vars (@test-tsibble2ts.R#4
  frequency(y) not equal to 24.
  1/1 mismatches
  [1] 1 - 24 == -23
  
  ── 15. Failure: a tsibble with more than one measured vars (@test-tsibble2ts.R#4
  frequency(pedestrian) not equal to 24.
  1/1 mismatches
  [1] 1 - 24 == -23
  
  ── 16. Failure: a tsibble with more than one measured vars (@test-tsibble2ts.R#4
  ncol(y) not equal to 4.
  1/1 mismatches
  [1] 5 - 4 == 1
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 656 SKIPPED: 0 FAILED: 16
  1. Failure: key_by() (@test-key.R#4) 
  2. Error: key_by() (@test-key.R#6) 
  3. Error: rename_tsibble() (@test-key.R#12) 
  4. Failure: pillar S3 methods (@test-pillar.R#19) 
  5. Failure: nest() (@test-tidyr.R#66) 
  6. Failure: nest() (@test-tidyr.R#67) 
  7. Failure: nest() (@test-tidyr.R#77) 
  8. Error: nest() (@test-tidyr.R#78) 
  9. Error: POSIXt with 1 second interval (@test-tsibble.R#80) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted