Running ‘testthat.R’ [24s/32s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(faux)
  
  ************
  Welcome to faux. For support and examples visit:
  https://scienceverse.github.io/faux/
  - Get and set global package options with: faux_options()
  ************
  > 
  > expect_equal <- function(...) {
  +   testthat::expect_equal(..., check.environment=FALSE)
  + }
  > 
  > test_check("faux")
  Saving _problems/test-distributions-23.R
  Saving _problems/test-distributions-24.R
  Saving _problems/test-distributions-25.R
  [ FAIL 3 | WARN 0 | SKIP 42 | PASS 1244 ]
  
  ══ Skipped tests (42) ══════════════════════════════════════════════════════════
  • On CRAN (12): 'test-distributions.R:61:3', 'test-distributions.R:92:3',
    'test-distributions.R:115:3', 'test-distributions.R:138:3',
    'test-distributions.R:162:3', 'test-distributions.R:236:3',
    'test-distributions.R:294:3', 'test-distributions.R:318:3',
    'test-distributions.R:386:3', 'test-distributions.R:415:3',
    'test-plot_design.R:57:3', 'test-plot_design.R:347:3'
  • Too variable (1): 'test-distributions.R:520:3'
  • long checking function (1): 'test-norta.R:55:3'
  • long simulation (8): 'test-norta.R:92:3', 'test-norta.R:112:3',
    'test-norta.R:140:3', 'test-norta.R:160:3', 'test-norta.R:186:3',
    'test-norta.R:209:3', 'test-norta.R:233:3', 'test-norta.R:295:3'
  • {knitr} is not installed. (20): 'test-check_design.R:339:3',
    'test-check_design.R:379:3', 'test-codebook.R:11:3', 'test-codebook.R:96:3',
    'test-codebook.R:113:3', 'test-codebook.R:154:3', 'test-codebook.R:194:3',
    'test-codebook.R:212:3', 'test-codebook.R:266:3', 'test-codebook.R:317:3',
    'test-codebook.R:337:3', 'test-codebook.R:399:3',
    'test-codebook_interactive.R:51:35', 'test-codebook_interactive.R:95:32',
    'test-interactive_design.R:18:25', 'test-interactive_design.R:62:25',
    'test-interactive_design.R:108:25', 'test-interactive_design.R:157:25',
    'test-messages.R:4:3', 'test-sim_design.R:646:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-distributions.R:23:3'): error ────────────────────────────────
  `binom2norm(c(1, 2, -3))` threw an error with unexpected message.
  Expected match: "the smallest possible value in a binomial distribution is 0"
  Actual message: "there is no package called 'knitr'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(binom2norm(c(1, 2, -3)), "the smallest possible value in a binomial distribution is 0") at test-distributions.R:23:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─faux::binom2norm(c(1, 2, -3))
    7. │ └─faux:::message("size was not set, so guessed as ", size)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test-distributions.R:24:3'): error ────────────────────────────────
  `binom2norm(c(1, 2, 3), size = 2)` threw an error with unexpected message.
  Expected match: "size cannot be smaller than the largest value"
  Actual message: "there is no package called 'knitr'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(binom2norm(c(1, 2, 3), size = 2), "size cannot be smaller than the largest value") at test-distributions.R:24:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─faux::binom2norm(c(1, 2, 3), size = 2)
    7. │ └─faux:::message("prob was not set, so guessed as ", prob)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test-distributions.R:25:3'): error ────────────────────────────────
  `binom2norm(c(0, 1), size = 1)` threw an error with unexpected message.
  Expected match: "size cannot be smaller than 2"
  Actual message: "there is no package called 'knitr'"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(binom2norm(c(0, 1), size = 1), "size cannot be smaller than 2") at test-distributions.R:25:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─faux::binom2norm(c(0, 1), size = 1)
    7. │ └─faux:::message("prob was not set, so guessed as ", prob)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 0 | SKIP 42 | PASS 1244 ]
  Error:
  ! Test failures.
  Execution halted