Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ## use shift-cmd-t in Rstudio to run all tests
  > library(testthat)
  > test_check("radiant.data")
  Loading required package: radiant.data
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  Loading required package: ggplot2
  Loading required package: lubridate
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  Loading required package: tidyr
  
  Attaching package: 'tidyr'
  
  The following object is masked from 'package:magrittr':
  
      extract
  
  The following object is masked from 'package:testthat':
  
      matches
  
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'radiant.data'
  
  The following objects are masked from 'package:lubridate':
  
      month, wday
  
  The following object is masked from 'package:ggplot2':
  
      diamonds
  
  The following object is masked from 'package:testthat':
  
      describe
  
  ── 1. Failure: transform ts (@test_funs.R#166)  ────────────────────────────────
  dat$mpg not equal to ts(mtcars$mpg, start = c(1971, 1), frequency = 52).
  Classes differ: numeric is not ts
  
  ── 2. Failure: transform ts (@test_funs.R#167)  ────────────────────────────────
  dat$cyl not equal to ts(mtcars$cyl, start = c(1971, 1), frequency = 52).
  Classes differ: numeric is not ts
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 32 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Failure: transform ts (@test_funs.R#166) 
  2. Failure: transform ts (@test_funs.R#167) 
  
  Error: testthat unit tests failed
  Execution halted