Running ‘testthat.R’ [23s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(anomalize)
  > library(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
  
  > library(ggplot2)
  > library(tibble)
  > 
  > # set_time_scale_template(time_scale_template())
  > 
  > test_check("anomalize")
  ── 1. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)  ─
  Evaluation error: Rounding with day > 31 is not supported.
  1: tq_dloads %>% time_trend(period = "90 days") at testthat/test-time_frequency.R:64
  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: time_trend(., period = "90 days")
  10: data %>% tibbletime::collapse_by(period = period) %>% dplyr::count(!!index_expr) %>% 
         dplyr::pull(n) %>% stats::median(na.rm = T)
  ...
  15: freduce(value, `_function_list`)
  16: function_list[[i]](value)
  17: tibbletime::collapse_by(., period = period)
  18: dplyr::mutate(.data = .tbl_time, `:=`(!!index_char, collapse_index(index = !!index_quo, 
         period = period, start_date = start_date, side = side, clean = clean, ...)))
  19: mutate.tbl_time(.data = .tbl_time, `:=`(!!index_char, collapse_index(index = !!index_quo, 
         period = period, start_date = start_date, side = side, clean = clean, ...)))
  20: reconstruct(NextMethod(), copy_.data)
  21: reconstruct.tbl_time(NextMethod(), copy_.data)
  22: NextMethod()
  23: mutate.tbl_df(.data = .tbl_time, `:=`(!!index_char, collapse_index(index = !!index_quo, 
         period = period, start_date = start_date, side = side, clean = clean, ...)))
  24: mutate_impl(.data, dots)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 63 SKIPPED: 0 FAILED: 1
  1. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64) 
  
  Error: testthat unit tests failed
  Execution halted