Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(gam)
  Loading required package: splines
  Loading required package: foreach
  Loaded gam 1.22-5
  
  > 
  > test_check("gam")
  Start:  y ~ s(x, 6) + z; AIC= 43.7495 
  Step:1 y ~ s(x, 6) ; AIC= 42.6681 
  Testing fit1
  Testing fit2
  Testing fit3
  Testing fit4
  Testing fit5
  Testing fit6
  Testing sum1
  Testing an1
  Testing an2
  Testing step1
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 8 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_example.R:45:5'): (code run outside of `test_that()`) ────────
  objects[[x]] not equal to expected[[x]].
  Component "family": Component "variance": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  Component "family": Component "dev.resids": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  Component "family": Component "aic": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  Component "family": Component "validmu": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  Component "family": Component "simulate": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  ── Failure ('test_example.R:45:5'): (code run outside of `test_that()`) ────────
  objects[[x]] not equal to expected[[x]].
  Component "family": Component "variance": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  Component "family": Component "dev.resids": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  Component "family": Component "aic": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  Component "family": Component "validmu": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  Component "family": Component "simulate": Component "okLinks": Lengths (6, 5) differ (string compare on first 5)
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 8 ]
  Error: Test failures
  Execution halted