Running ‘test-all.R’ [171s/172s]
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
  ── 1. Error: derivatives() returns derivatives for all smooths in a factor by GA
  Can't recycle `..1` (size 200) to match `..2` (size 0).
  Backtrace:
    1. testthat::expect_silent(df <- derivatives(mod))
   14. vctrs::stop_incompatible_size(...)
   15. vctrs:::stop_incompatible(...)
   16. vctrs:::stop_vctrs(...)
  
  ── 2. Error: derivatives() returns derivatives for all smooths in a factor by GA
  Can't recycle `..1` (size 200) to match `..2` (size 0).
  Backtrace:
    1. testthat::expect_silent(df <- derivatives(mod, order = 2))
   14. vctrs::stop_incompatible_size(...)
   15. vctrs:::stop_incompatible(...)
   16. vctrs:::stop_vctrs(...)
  
  ── 3. Error: derivatives() works for factor by smooths issue 47 (@test-derivativ
  Can't recycle `..1` (size 200) to match `..2` (size 0).
  Backtrace:
    1. testthat::expect_silent(d <- derivatives(m))
   14. vctrs::stop_incompatible_size(...)
   15. vctrs:::stop_incompatible(...)
   16. vctrs:::stop_vctrs(...)
  
  ── 4. Error: derivatives() works for fs smooths issue 57 (@test-derivatives.R#38
  Can't recycle `..1` (size 3200) to match `..2` (size 0).
  Backtrace:
    1. testthat::expect_silent(d <- derivatives(m))
   14. vctrs::stop_incompatible_size(...)
   15. vctrs:::stop_incompatible(...)
   16. vctrs:::stop_vctrs(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 697 | SKIPPED: 74 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: derivatives() returns derivatives for all smooths in a factor by GAM (@test-derivatives.R#183) 
  2. Error: derivatives() returns derivatives for all smooths in a factor by GAM (@test-derivatives.R#225) 
  3. Error: derivatives() works for factor by smooths issue 47 (@test-derivatives.R#339) 
  4. Error: derivatives() works for fs smooths issue 57 (@test-derivatives.R#389) 
  
  Error: testthat unit tests failed
  Execution halted