Running ‘testthat.R’ [8s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ## Test `Hmsc` using the `testthat` package
  > 
  > ## Setup
  > require("testthat")
  Loading required package: testthat
  > require("Hmsc")
  Loading required package: Hmsc
  Loading required package: coda
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, will retire in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  The sp package is now running under evolution status 2
       (status 2 uses the sf package in place of rgdal)
  > 
  > ## Runs the tests in inst/tests
  > test_check("Hmsc")
  Hmsc::computeInitialParameter - initializing fixed effects with SSDM estimates
  Hmsc::computeInitialParameter - initializing fixed effects with SSDM estimates
  Hmsc::computeInitialParameter - initializing fixed effects with SSDM estimates
  Hmsc::computeInitialParameter - initializing fixed effects with SSDM estimates
  Chain 1, iteration 1 of 1 (sampling)
  Failed updaters and their counts in chain 1  ( 1  attempts):
  GammaEta      Eta 
         1        1 
  [ FAIL 2 | WARN 8 | SKIP 1 | PASS 212 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • empty test (1): 'test-setHmsc.R:38:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-sampling.R:19:4'): UpdateGammaEta is correct ───────────────────
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─Hmsc:::updateGammaEta(...) at test-sampling.R:19:3
   2.   └─base::as.matrix(...)
  ── Error ('test-sampling.R:100:4'): updateEta is correct ───────────────────────
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─Hmsc:::updateEta(...) at test-sampling.R:100:3
  
  [ FAIL 2 | WARN 8 | SKIP 1 | PASS 212 ]
  Error: Test failures
  Execution halted