Running ‘testthat.R’ [179s/223s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("scorematchingad")
  Loading required package: scorematchingad
  The Jacobian of the Hessian was non-zero for row 1 of xmat and dynmat
  Saving _problems/test-vMF-102.R
  Saving _problems/test-vMF-102.R
  [ FAIL 2 | WARN 0 | SKIP 18 | PASS 427 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • Fixing many of the elements doesn't improve smdbjgrad (1): 'test-FB.R:117:3'
  • Hardcoded and closed methods both fail on this. But not on the microbiome
    data (1): 'test-cppad_closed.R:60:3'
  • On CRAN (15): 'test-Bingham.R:76:3', 'test-Bingham.R:97:3', 'test-FB.R:48:3',
    'test-FB.R:139:3', 'test-Windham-Microdata.R:1:1', 'test-Windham.R:2:3',
    'test-closed-dirichlet.R:1:1', 'test-closed-ppi-Ralr.R:2:3',
    'test-closed-ppi-sphere-simplex.R:171:3', 'test-gengamma_alr.R:25:3',
    'test-ppi-difficultAL.R:1:1', 'test-ppi-microdata.R:9:1',
    'test-ppi-microdata.R:64:1', 'test-ppi_mmmm.R:1:1', 'test-rppi.R:10:3'
  • Only for research. (1): 'test-FB.R:97:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-vMF.R:102:3'): vMF matches for simulated weights, ignoring SE, which shouldn't match ──
  Expected `dir3_m` to equal `vMF_m(Y)`.
  Differences:
    `actual`: -0.579 0.722 -0.380
  `expected`: -0.384 0.824 -0.417
  
  Backtrace:
      ▆
   1. ├─testthat::expect_error(expect_equal(dir3_m, vMF_m(Y)), "not equal to") at test-vMF.R:102:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─testthat::expect_equal(dir3_m, vMF_m(Y))
  ── Failure ('test-vMF.R:102:3'): vMF matches for simulated weights, ignoring SE, which shouldn't match ──
  Expected `expect_equal(dir3_m, vMF_m(Y))` to throw a error.
  
  [ FAIL 2 | WARN 0 | SKIP 18 | PASS 427 ]
  Error:
  ! Test failures.
  Execution halted