Running ‘test-all.R’ [116s/128s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > ## Test `gratia` using the `testthat` package
  > 
  > ## Setup
  > library("testthat")
  > 
  > ## Runs the tests in tests/testthat
  > test_check("gratia")
  Loading required package: gratia
  list()
  ── 1. Failure: internal finite diff functions fail for all factor vars (@test-de
  `forward_finite_diff1(mod, df)` threw an error with unexpected message.
  Expected match: "Can't compute finite differences for all non-numeric data."
  Actual message: "non-numeric argument to binary operator"
  Backtrace:
   1. testthat::expect_error(...)
   6. gratia:::forward_finite_diff1(mod, df)
   7. gratia:::shift_values(newdata, h = h, i = ind, FUN = "+")
   8. base::Ops.data.frame(result, h)
  
  ── 2. Failure: internal finite diff functions fail for all factor vars (@test-de
  `backward_finite_diff1(mod, df)` threw an error with unexpected message.
  Expected match: "Can't compute finite differences for all non-numeric data."
  Actual message: "non-numeric argument to binary operator"
  Backtrace:
   1. testthat::expect_error(...)
   6. gratia:::backward_finite_diff1(mod, df)
   7. gratia:::shift_values(newdata, h = h, i = ind, FUN = "-")
   8. base::Ops.data.frame(result, h)
  
  ── 3. Failure: internal finite diff functions fail for all factor vars (@test-de
  `central_finite_diff1(mod, df)` threw an error with unexpected message.
  Expected match: "Can't compute finite differences for all non-numeric data."
  Actual message: "non-numeric argument to binary operator"
  Backtrace:
   1. testthat::expect_error(...)
   6. gratia:::central_finite_diff1(mod, df)
   7. gratia:::shift_values(newdata, h = h/2, i = ind, FUN = "+")
   8. base::Ops.data.frame(result, h)
  
  ── 4. Failure: internal finite diff functions fail for all factor vars (@test-de
  `forward_finite_diff2(mod, df)` threw an error with unexpected message.
  Expected match: "Can't compute finite differences for all non-numeric data."
  Actual message: "non-numeric argument to binary operator"
  Backtrace:
   1. testthat::expect_error(...)
   6. gratia:::forward_finite_diff2(mod, df)
   7. gratia:::shift_values(newdata, h = h, i = ind, FUN = "+")
   8. base::Ops.data.frame(result, h)
  
  ── 5. Failure: internal finite diff functions fail for all factor vars (@test-de
  `backward_finite_diff2(mod, df)` threw an error with unexpected message.
  Expected match: "Can't compute finite differences for all non-numeric data."
  Actual message: "non-numeric argument to binary operator"
  Backtrace:
   1. testthat::expect_error(...)
   6. gratia:::backward_finite_diff2(mod, df)
   7. gratia:::shift_values(newdata, h = h, i = ind, FUN = "-")
   8. base::Ops.data.frame(result, h)
  
  ── 6. Failure: internal finite diff functions fail for all factor vars (@test-de
  `central_finite_diff2(mod, df)` threw an error with unexpected message.
  Expected match: "Can't compute finite differences for all non-numeric data."
  Actual message: "non-numeric argument to binary operator"
  Backtrace:
   1. testthat::expect_error(...)
   6. gratia:::central_finite_diff2(mod, df)
   7. gratia:::shift_values(newdata, h = h, i = ind, FUN = "+")
   8. base::Ops.data.frame(result, h)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 514 | SKIPPED: 77 | WARNINGS: 0 | FAILED: 6 ]
  1. Failure: internal finite diff functions fail for all factor vars (@test-derivatives.R#270) 
  2. Failure: internal finite diff functions fail for all factor vars (@test-derivatives.R#274) 
  3. Failure: internal finite diff functions fail for all factor vars (@test-derivatives.R#278) 
  4. Failure: internal finite diff functions fail for all factor vars (@test-derivatives.R#282) 
  5. Failure: internal finite diff functions fail for all factor vars (@test-derivatives.R#286) 
  6. Failure: internal finite diff functions fail for all factor vars (@test-derivatives.R#290) 
  
  Error: testthat unit tests failed
  Execution halted