Running 'generate_tasmax.R' [0s]
  Running 'generate_wrfg_cgcm3_tasmax.R' [0s]
  Running 'test-all.R' [11s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > library(testthat)
  > library(Matrix)
  > library(splines)
  > library(hero)
  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)
  > test_check("hero")
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 74 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_array_functions.R:118:1'): (code run outside of `test_that()`) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─hero::prepare(Y, x = x, splines = splines) at test_array_functions.R:118:0
   2. └─hero:::prepare.array(Y, x = x, splines = splines)
   3.   ├─hero::assemble(splines, x = x, m = m, sparse = sparse, ...)
   4.   └─hero:::assemble.list(...)
   5.     └─base::lapply(...)
   6.       └─hero (local) FUN(X[[i]], ...)
   7.         ├─hero::assemble(...)
   8.         └─hero:::assemble.hero_bspline(...)
  ── Error ('test_assemble_bsplines.R:14:9'): assemble.hero_splines matches pspline.setting ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─hero::assemble(x, x = s, m = mc[k]) at test_assemble_bsplines.R:14:8
   2. └─hero:::assemble.hero_bspline(x, x = s, m = mc[k])
  ── Error ('test_diffpen.R:9:7'): diffpen matches diff.pen (or negative of it) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  ── Error ('test_matrix_functions.R:38:1'): (code run outside of `test_that()`) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─hero::prepare(Y, list(est$x, est$z), list(b1, b2)) at test_matrix_functions.R:38:0
   2. └─hero:::prepare.matrix(Y, list(est$x, est$z), list(b1, b2))
   3.   ├─hero::assemble(...)
   4.   └─hero:::assemble.list(...)
   5.     └─base::lapply(...)
   6.       └─hero (local) FUN(X[[i]], ...)
   7.         ├─hero::assemble(...)
   8.         └─hero:::assemble.hero_bspline(...)
  ── Error ('test_prepare_array_layered.R:36:1'): (code run outside of `test_that()`) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─hero::assemble(splines, x) at test_prepare_array_layered.R:36:0
   2. └─hero:::assemble.list(splines, x)
   3.   └─base::lapply(...)
   4.     └─hero (local) FUN(X[[i]], ...)
   5.       ├─hero::assemble(...)
   6.       └─hero:::assemble.hero_bspline(...)
  ── Error ('test_prepare_array_matrix.R:20:1'): (code run outside of `test_that()`) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─hero::prepare(datam) at test_prepare_array_matrix.R:20:0
   2. └─hero:::prepare.matrix(datam)
   3.   ├─hero::assemble(...)
   4.   └─hero:::assemble.list(...)
   5.     └─base::lapply(...)
   6.       └─hero (local) FUN(X[[i]], ...)
   7.         ├─hero::assemble(...)
   8.         └─hero:::assemble.hero_bspline(...)
  ── Error ('test_prepare_hero_starray_sts.R:8:1'): (code run outside of `test_that()`) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─hero::prepare(...) at test_prepare_hero_starray_sts.R:8:0
   2. └─hero:::prepare.sts(...)
   3.   ├─hero::assemble(...)
   4.   └─hero:::assemble.hero_radspline(...)
  ── Error ('test_prepare_list.R:5:1'): (code run outside of `test_that()`) ──────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─hero::prepare(data, x = x) at test_prepare_list.R:5:0
   2. └─hero:::prepare.list(data, x = x)
   3.   ├─hero::assemble(splines, x = x, m = m, sparse = sparse, ...)
   4.   └─hero:::assemble.list(...)
   5.     └─base::lapply(...)
   6.       └─hero (local) FUN(X[[i]], ...)
   7.         ├─hero::assemble(...)
   8.         └─hero:::assemble.hero_bspline(...)
  ── Error ('test_prepare_matrix_layered.R:6:1'): (code run outside of `test_that()`) ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─hero::assemble(splines, x = list(x, z)) at test_prepare_matrix_layered.R:6:0
   2. └─hero:::assemble.list(splines, x = list(x, z))
   3.   └─base::lapply(...)
   4.     └─hero (local) FUN(X[[i]], ...)
   5.       ├─hero::assemble(...)
   6.       └─hero:::assemble.hero_bspline(...)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 74 ]
  Error: Test failures
  Execution halted