Running ‘testthat.R’ [56s/88s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(infer)
  > 
  > test_check("infer")
  Response: hours (numeric)
  Null Hypothesis: point
  # A tibble: 1 × 1
     stat
    <dbl>
  1  41.4
  Response: hours (numeric)
  Null Hypothesis: point
  # A tibble: 1 × 1
     stat
    <dbl>
  1  41.4
  Response: hours (numeric)
  Null Hypothesis: point
  # A tibble: 1 × 1
     stat
    <dbl>
  1  62.4
  Response: hours (numeric)
  Null Hypothesis: point
  # A tibble: 1 × 1
     stat
    <dbl>
  1  62.4
  list()
  list()
  <simpleWarning: With only 10 replicates, it may be difficult to see the relationship between simulation and theory.>
  <warning/rlang_warning>
  Warning:
  Ignoring unknown parameters: direction
  ---
  Backtrace:
    1. infer:::expect_doppelganger(...)
         at test-visualize.R:556:2
   11. ggplot2:::`+.gg`(...)
   12. ggplot2:::add_ggplot(e1, e2, e2name)
   14. infer:::ggplot_add.infer_layer(object, p, objectname)
   16. infer:::shade_confidence_interval_term(...)
   18. ggplot2 (local) `<fn>`(...)
   19. ggplot2::layer(...)
  [ FAIL 2 | WARN 7 | SKIP 14 | PASS 756 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (14)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-calculate.R:19:3): calculate checks `stat` argument ───────────
  `calculate(gen_gss_slope, stat = "slopee")` threw an error with unexpected message.
  Expected match: "`stat` must be one of.*Did you mean \"slope\""
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-calculate.R:19:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─infer::calculate(gen_gss_slope, stat = "slopee")
    7. │ └─infer:::check_calculate_stat(stat)
    8. │   └─rlang::arg_match(stat, implemented_stats)
    9. │     └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
   10. └─rlang:::stop_arg_match(w, x, y, z)
   11.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   12.     └─rlang:::signal_abort(cnd, .file)
   13.       └─base::signalCondition(cnd)
   14.         ├─base::conditionMessage(cond)
   15.         └─rlang:::conditionMessage.rlang_error(cond)
   16.           └─rlang::cnd_message(c)
   17.             └─rlang:::cnd_message_format(cnd, ...)
   18.               └─rlang (local) cli_format(glue_escape(lines))
   19.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                   └─cli::cli_format(x, .envir = emptyenv())
   21.                     └─cli:::fmt(...)
   22.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                         ├─base::do.call(app[[msg$type]], msg$args)
   24.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-12", class = NULL)
   25.                           └─cli:::clii_bullets(app, text, id, class)
   26.                             └─base::lapply(...)
   27.                               └─cli (local) FUN(X[[i]], ...)
   28.                                 └─app$text(text[[i]])
   29.                                   └─cli:::clii_text(app, text)
   30.                                     └─app$xtext(text)
   31.                                       └─cli:::clii__xtext(...)
   32.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                           └─base::lapply(pars, ansi_trimws)
   34.                                             └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-calculate.R:31:3): calculate checks `stat` argument ───────────
  `calculate(gen_gss_slope, stat = "chi sq")` threw an error with unexpected message.
  Expected match: "`stat` must be one of.*Did you mean \"Chisq\""
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-calculate.R:31:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─infer::calculate(gen_gss_slope, stat = "chi sq")
    7. │ └─infer:::check_calculate_stat(stat)
    8. │   └─rlang::arg_match(stat, implemented_stats)
    9. │     └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
   10. └─rlang:::stop_arg_match(w, x, y, z)
   11.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   12.     └─rlang:::signal_abort(cnd, .file)
   13.       └─base::signalCondition(cnd)
   14.         ├─base::conditionMessage(cond)
   15.         └─rlang:::conditionMessage.rlang_error(cond)
   16.           └─rlang::cnd_message(c)
   17.             └─rlang:::cnd_message_format(cnd, ...)
   18.               └─rlang (local) cli_format(glue_escape(lines))
   19.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                   └─cli::cli_format(x, .envir = emptyenv())
   21.                     └─cli:::fmt(...)
   22.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                         ├─base::do.call(app[[msg$type]], msg$args)
   24.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-56", class = NULL)
   25.                           └─cli:::clii_bullets(app, text, id, class)
   26.                             └─base::lapply(...)
   27.                               └─cli (local) FUN(X[[i]], ...)
   28.                                 └─app$text(text[[i]])
   29.                                   └─cli:::clii_text(app, text)
   30.                                     └─app$xtext(text)
   31.                                       └─cli:::clii__xtext(...)
   32.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                           └─base::lapply(pars, ansi_trimws)
   34.                                             └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 2 | WARN 7 | SKIP 14 | PASS 756 ]
  Deleting unused snapshots:
  • shade_confidence_interval/ci-both-fill.svg
  • shade_confidence_interval/ci-both-nofill.svg
  • shade_confidence_interval/ci-extra-aes-2.svg
  • shade_confidence_interval/ci-sim-nofill.svg
  • shade_confidence_interval/ci-theor-fill.svg
  • shade_confidence_interval/ci-theor-nofill.svg
  • shade_p_value/pval-both-both.svg
  • shade_p_value/pval-both-corrupt.svg
  • shade_p_value/pval-both-left.svg
  • shade_p_value/pval-both-null.svg
  • shade_p_value/pval-both-right.svg
  • shade_p_value/pval-direction-both.svg
  • shade_p_value/pval-direction-left.svg
  • shade_p_value/pval-extra-aes-2.svg
  • shade_p_value/pval-extra-aes-3.svg
  • shade_p_value/pval-sim-both.svg
  • shade_p_value/pval-sim-corrupt.svg
  • shade_p_value/pval-sim-left.svg
  • shade_p_value/pval-sim-null.svg
  • shade_p_value/pval-stat-match.svg
  • shade_p_value/pval-theor-both.svg
  • shade_p_value/pval-theor-corrupt.svg
  • shade_p_value/pval-theor-left.svg
  • shade_p_value/pval-theor-null.svg
  • shade_p_value/pval-theor-right.svg
  • visualize/df-obs-stat-2.svg
  • visualize/vis-both-both-1.svg
  • visualize/vis-both-both-2.svg
  • visualize/vis-both-left-1.svg
  • visualize/vis-both-left-2.svg
  • visualize/vis-both-none-1.svg
  • visualize/vis-both-none-2.svg
  • visualize/vis-both-right-1.svg
  • visualize/vis-both-right-2.svg
  • visualize/vis-no-hypothesize-both.svg
  • visualize/vis-sim-both-1.svg
  • visualize/vis-sim-both-2.svg
  • visualize/vis-sim-left-1.svg
  • visualize/vis-sim-none-1.svg
  • visualize/vis-sim-right-1.svg
  • visualize/vis-theor-both-1.svg
  • visualize/vis-theor-both-2.svg
  • visualize/vis-theor-left-1.svg
  • visualize/vis-theor-none-1.svg
  • visualize/vis-theor-none-2.svg
  • visualize/vis-theor-none-3.svg
  • visualize/vis-theor-none-4.svg
  • visualize/vis-theor-right-1.svg
  • visualize/visualise.svg
  • visualize/viz-assume-2t-ci.svg
  • visualize/viz-assume-2t-p-val-both.svg
  • visualize/viz-assume-2t-p-val-left.svg
  • visualize/viz-assume-2t-p-val-right.svg
  • visualize/viz-assume-2t.svg
  • visualize/viz-assume-2z-ci.svg
  • visualize/viz-assume-2z-p-val-both.svg
  • visualize/viz-assume-2z-p-val-left.svg
  • visualize/viz-assume-2z-p-val-right.svg
  • visualize/viz-assume-2z.svg
  • visualize/viz-assume-f-p-val.svg
  • visualize/viz-assume-t-both.svg
  • visualize/viz-assume-t-ci.svg
  • visualize/viz-assume-t-p-val-both.svg
  • visualize/viz-assume-t-p-val-left.svg
  • visualize/viz-assume-t-p-val-right.svg
  • visualize/viz-assume-t-sim.svg
  • visualize/viz-assume-t.svg
  • visualize/viz-assume-z-ci.svg
  • visualize/viz-assume-z-p-val-both.svg
  • visualize/viz-assume-z-p-val-left.svg
  • visualize/viz-assume-z-p-val-right.svg
  • visualize/viz-assume-z.svg
  • visualize/viz-fit-conf-int.svg
  • visualize/viz-fit-p-val-both.svg
  • visualize/viz-fit-p-val-left.svg
  • visualize/viz-fit-p-val-right.svg
  Error: Test failures
  Execution halted