Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # The setting of R_TESTS exists to work around an R bug. See
  > # https://github.com/hadley/testthat/issues/144
  > # We should remove it when the issue is resolved.
  > Sys.unsetenv("R_TESTS")
  > library(testthat)
  > library(secsse)
  > 
  > test_check("secsse")
  [ FAIL 3 | WARN 0 | SKIP 4 | PASS 46 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test_geosse.R:74:5', 'test_ml_par.R:4:3',
    'test_plotting.R:33:3', 'test_secsse_sim.R:4:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_hisse.R:11:3'): secsse gives the same result as hisse ──────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_hisse.R:11:2
   2.   ├─base::namespaceImportFrom(...)
   3.   │ └─base::asNamespace(ns)
   4.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   5.     └─base::namespaceImportFrom(...)
   6.       └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_secsse_cla_ct.R:40:3'): the loglik for the complete tree under cla_secsse ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─secsse::cla_secsse_loglik(...) at test_secsse_cla_ct.R:40:2
    2. │ └─secsse:::build_initStates_time(...)
    3. │   └─secsse:::build_states(...)
    4. │     └─secsse:::create_states(...)
    5. └─base::loadNamespace(x)
    6.   ├─base::namespaceImportFrom(...)
    7.   │ └─base::asNamespace(ns)
    8.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
    9.     ├─base::namespaceImportFrom(...)
   10.     │ └─base::asNamespace(ns)
   11.     └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   12.       └─base::namespaceImportFrom(...)
   13.         └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_secsse_ct.R:22:3'): the loglik for the complete tree ───────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─secsse::secsse_loglik(...) at test_secsse_ct.R:22:2
    2. │ └─secsse:::build_initStates_time(...)
    3. │   └─secsse:::build_states(...)
    4. │     └─secsse:::create_states(...)
    5. └─base::loadNamespace(x)
    6.   ├─base::namespaceImportFrom(...)
    7.   │ └─base::asNamespace(ns)
    8.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
    9.     ├─base::namespaceImportFrom(...)
   10.     │ └─base::asNamespace(ns)
   11.     └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   12.       └─base::namespaceImportFrom(...)
   13.         └─base::importIntoEnv(impenv, impnames, ns, impvars)
  
  [ FAIL 3 | WARN 0 | SKIP 4 | PASS 46 ]
  Error: Test failures
  Execution halted