Running ‘testthat.R’ [9s/14s]
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")
  
   *** caught segfault ***
  address 0x6a63, cause 'memory not mapped'
  
  Traceback:
   1: idx_periodicity$end
   2: eval_tidy(xs[[i]], unique_output)
   3: lst_quos(xs, expand = TRUE)
   4: as_tibble(lst_quos(xs, expand = TRUE))
   5: tibble::tibble(start = idx_periodicity$start, end = idx_periodicity$end,     units = idx_periodicity$units, scale = idx_periodicity$label)
   6: get_timeseries_summary_date(idx)
   7: tk_get_timeseries_summary.Date(.)
   8: timetk::tk_get_timeseries_summary(.)
   9: function_list[[k]](value)
  10: withVisible(function_list[[k]](value))
  11: freduce(value, `_function_list`)
  12: `_fseq`(`_lhs`)
  13: eval(quote(`_fseq`(`_lhs`)), env, env)
  14: eval(quote(`_fseq`(`_lhs`)), env, env)
  15: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  16: data %>% tibbletime::get_index_col() %>% timetk::tk_get_timeseries_summary()
  17: time_trend(data, period = trend, message = message)
  18: decompose_stl(., !!target_expr, frequency = frequency, trend = trend,     message = message, ...)
  19: function_list[[k]](value)
  20: withVisible(function_list[[k]](value))
  21: freduce(value, `_function_list`)
  22: `_fseq`(`_lhs`)
  23: eval(quote(`_fseq`(`_lhs`)), env, env)
  24: eval(quote(`_fseq`(`_lhs`)), env, env)
  25: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  26: data %>% decompose_stl(!!target_expr, frequency = frequency,     trend = trend, message = message, ...)
  27: time_decompose.tbl_time(.x[[i]], ...)
  28: .f(.x[[i]], ...)
  29: purrr::map(.x = data, .f = .f, target = ~count, ...)
  30: evalq(purrr::map(.x = data, .f = .f, target = ~count, ...), <environment>)
  31: evalq(purrr::map(.x = data, .f = .f, target = ~count, ...), <environment>)
  32: doTryCatch(return(expr), name, parentenv, handler)
  33: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  34: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  35: doTryCatch(return(expr), name, parentenv, handler)
  36: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  37: tryCatchList(expr, classes, parentenv, handlers)
  38: tryCatch(evalq(purrr::map(.x = data, .f = .f, target = ~count,     ...), <environment>), error = function (x) x, interrupt = function (x) x)
  39: mutate_impl(.data, dots)
  40: mutate.tbl_df(., nested.col = purrr::map(.x = data, .f = .f,     target = !!target_expr, ...))
  41: dplyr::mutate(., nested.col = purrr::map(.x = data, .f = .f,     target = !!target_expr, ...))
  42: function_list[[i]](value)
  43: freduce(value, `_function_list`)
  44: `_fseq`(`_lhs`)
  45: eval(quote(`_fseq`(`_lhs`)), env, env)
  46: eval(quote(`_fseq`(`_lhs`)), env, env)
  47: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  48: data %>% tidyr::nest() %>% dplyr::mutate(nested.col = purrr::map(.x = data,     .f = .f, target = !!target_expr, ...)) %>% dplyr::select(-data) %>%     tidyr::unnest() %>% dplyr::group_by(!!!group_vars_expr)
  49: grouped_mapper(., .f = time_decompose, target = !!target_expr,     method = method[[1]], frequency = frequency, trend = trend,     ... = ..., merge = merge, message = message)
  50: function_list[[k]](value)
  51: withVisible(function_list[[k]](value))
  52: freduce(value, `_function_list`)
  53: `_fseq`(`_lhs`)
  54: eval(quote(`_fseq`(`_lhs`)), env, env)
  55: eval(quote(`_fseq`(`_lhs`)), env, env)
  56: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  57: data %>% grouped_mapper(.f = time_decompose, target = !!target_expr,     method = method[[1]], frequency = frequency, trend = trend,     ... = ..., merge = merge, message = message)
  58: time_decompose.grouped_tbl_time(., count, method = "stl", frequency = 7,     trend = 30)
  59: time_decompose(., count, method = "stl", frequency = 7, trend = 30)
  60: function_list[[k]](value)
  61: withVisible(function_list[[k]](value))
  62: freduce(value, `_function_list`)
  63: `_fseq`(`_lhs`)
  64: eval(quote(`_fseq`(`_lhs`)), env, env)
  65: eval(quote(`_fseq`(`_lhs`)), env, env)
  66: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  67: tidyverse_cran_downloads %>% time_decompose(count, method = "stl",     frequency = 7, trend = 30)
  68: eval(code, test_env)
  69: eval(code, test_env)
  70: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  71: doTryCatch(return(expr), name, parentenv, handler)
  72: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  73: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  74: doTryCatch(return(expr), name, parentenv, handler)
  75: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  76: tryCatchList(expr, classes, parentenv, handlers)
  77: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  78: test_code(desc, code, env = parent.frame())
  79: test_that("method = stl, numeric freq/trend", {    stl_tbl_time <- tidyverse_cran_downloads %>% time_decompose(count,         method = "stl", frequency = 7, trend = 30)    expect_equal(ncol(stl_tbl_time), 6)    expect_equal(nrow(stl_tbl_time), 6375)    expect_equal(group_size(stl_tbl_time) %>% length(), 15)})
  80: eval(code, test_env)
  81: eval(code, test_env)
  82: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  83: doTryCatch(return(expr), name, parentenv, handler)
  84: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  85: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  86: doTryCatch(return(expr), name, parentenv, handler)
  87: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  88: tryCatchList(expr, classes, parentenv, handlers)
  89: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  90: test_code(NULL, exprs, env)
  91: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  92: force(code)
  93: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  94: FUN(X[[i]], ...)
  95: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  96: force(code)
  97: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  98: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  99: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  100: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  101: test_check("anomalize")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault