Running ‘testthat.R’ [57s/79s]
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: Ignoring unknown parameters: direction>
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (14)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-shade_confidence_interval.R:64:3): shade_confidence_interval throws errors and warnings ──
  `gss_viz_sim + shade_confidence_interval(data.frame(x = 1))` threw an error with unexpected message.
  Expected match: "1 x 2"
  Actual message: "undefined columns selected"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-shade_confidence_interval.R:64:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─ggplot2:::`+.gg`(gss_viz_sim, shade_confidence_interval(data.frame(x = 1)))
    7.   └─ggplot2:::add_ggplot(e1, e2, e2name)
    8.     ├─ggplot2::ggplot_add(object, p, objectname)
    9.     └─infer:::ggplot_add.infer_layer(object, p, objectname)
   10.       ├─base::do.call(paste0(shade_fn, "_term"), args)
   11.       └─infer:::shade_confidence_interval_term(...)
   12.         └─infer:::impute_endpoints(endpoints, plot)
   13.           ├─endpoints[1:2]
   14.           └─base::`[.data.frame`(endpoints, 1:2)
  
  [ FAIL 1 | WARN 3 | SKIP 14 | PASS 722 ]
  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-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-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.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