Running ‘testthat.R’ [9s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mcglm)
  ----------------------------------------------------------------------
    mcglm: Multivariate Covariance Generalized Linear Models
  
    For support, collaboration or bug report, visit: 
      mcglm.leg.ufpr.br
  
    mcglm version 0.8.0 (build on 2022-09-15) is now loaded.
  ----------------------------------------------------------------------
  > 
  > test_check("mcglm")
  [1] "Running test_mc_build_C.R"
  [1] "Testing covariance identity"
  [1] "OK"
  [1] "Testing covariance inverse"
  [1] "OK"
  [1] "Testing covariance expm"
  [1] "OK"
  [1] "Checking computations"
  [1] "Testing variance function: tweedie"
  [1] "OK"
  [1] "Testing variance function: binomialP"
  [1] "OK"
  [1] "Checking Poisson-Tweedie derivatives"
  [1] "Checking binomiaPQ derivatives"
  [1] "test_mc_build.C - OK"
  [1] "test_mc_build_omega.R"
  [1] "test_mc_build_omega.R - OK"
  [1] "test_mc_build_sigma.R"
  [1] "test_mc_build_sigma.R - OK"
  [1] "test_mc_build_sigma_between.R"
  [1] "test_mc_build_sigma_between.R-OK"
  [1] "Testing link functions ..."
  [1] "Testing link functions - Part II"
  [1] "Testing link functions - Part II"
  [1] "Testing Matrix linear predictor..."
  [1] "Testing Matrix linear predictor... OK"
  [1] "Testing variance function ..."
  [1] "Testing variance function ... OK"
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 360 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_mc_build_C.R:537:5'): Checking inverse and derivatives - Bivariate case + identity ──
  solve(Sigma) not equal to actual$inv_C.
  Attributes: < Names: 1 string mismatch >
  Attributes: < Length mismatch: comparison on first 7 components >
  Attributes: < Component "class": 1 string mismatch >
  Attributes: < Component "i": Numeric: lengths (110, 200) differ >
  Attributes: < Component "p": Mean relative difference: 1.121212 >
  Attributes: < Component 7: Modes: character, numeric >
  Attributes: < Component 7: Lengths: 1, 200 >
  Attributes: < Component 7: target is character, current is numeric >
  ── Failure ('test_mc_build_C.R:622:5'): Checking inverse and derivatives - Bivariate case + identity + inverse ──
  solve(Sigma) not equal to actual$inv_C.
  Attributes: < Names: 1 string mismatch >
  Attributes: < Length mismatch: comparison on first 7 components >
  Attributes: < Component "class": 1 string mismatch >
  Attributes: < Component "i": Numeric: lengths (110, 200) differ >
  Attributes: < Component "p": Mean relative difference: 1.121212 >
  Attributes: < Component 7: Modes: character, numeric >
  Attributes: < Component 7: Lengths: 1, 200 >
  Attributes: < Component 7: target is character, current is numeric >
  ── Failure ('test_mc_build_C.R:684:5'): Checking derivatives with respect to beta - tweedie + identity ──
  `Sigma` not equal to actual$C.
  Attributes: < Component "factors": names for target but not for current >
  Attributes: < Component "factors": Length mismatch: comparison on first 0 components >
  ── Failure ('test_mc_build_C.R:726:5'): Checking derivatives with respect to beta - binomialP + identity ──
  `Sigma` not equal to actual$C.
  Attributes: < Component "factors": names for target but not for current >
  Attributes: < Component "factors": Length mismatch: comparison on first 0 components >
  ── Failure ('test_mc_build_C.R:769:5'): Checking derivatives with respect to beta - binomialPQ + identity ──
  `Sigma` not equal to actual$C.
  Attributes: < Component "factors": names for target but not for current >
  Attributes: < Component "factors": Length mismatch: comparison on first 0 components >
  ── Failure ('test_mc_build_C.R:816:5'): Checking derivatives with respect to beta - poisson_tweedie + identity ──
  `Sigma` not equal to actual$C.
  Attributes: < Component "factors": names for target but not for current >
  Attributes: < Component "factors": Length mismatch: comparison on first 0 components >
  ── Failure ('test_mc_build_C.R:858:5'): Checking derivatives with respect to beta - tweedie + inverse ──
  `Sigma` not equal to actual$C.
  Attributes: < Component "factors": names for target but not for current >
  Attributes: < Component "factors": Length mismatch: comparison on first 0 components >
  ── Failure ('test_mc_build_C.R:905:5'): Checking derivatives with respect to beta - binomialP + inverse ──
  `Sigma` not equal to actual$C.
  Attributes: < Component "factors": names for target but not for current >
  Attributes: < Component "factors": Length mismatch: comparison on first 0 components >
  ── Failure ('test_mc_build_C.R:953:5'): Checking derivatives with respect to beta - binomialPQ + inverse ──
  `Sigma` not equal to actual$C.
  Attributes: < Component "factors": names for target but not for current >
  Attributes: < Component "factors": Length mismatch: comparison on first 0 components >
  ── Failure ('test_mc_build_C.R:1009:5'): Checking derivatives with respect to beta - poisson_tweedie + inverse ──
  `Sigma` not equal to actual$C.
  Attributes: < Component "factors": names for target but not for current >
  Attributes: < Component "factors": Length mismatch: comparison on first 0 components >
  
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 360 ]
  Error: Test failures
  Execution halted