Running 'testthat.R' [46s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(MFPCA)
  Loading required package: funData
  
  Attaching package: 'funData'
  
  The following object is masked from 'package:stats':
  
      integrate
  
  > 
  > test_check("MFPCA")
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 306 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test_fftw.R:43:3', 'test_fftw.R:73:3',
    'test_univExpansion.R:101:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_MFPCA_calculation.R:73:3'): test MFPCA main function ───────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test_MFPCA_calculation.R:73:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─MFPCA::MFPCA(...)
   7.   └─MFPCA:::calcMFPCA(...)
   8.     ├─base::diag(as.matrix(Matrix::crossprod(Z %*% vectors)))
   9.     └─base::as.matrix(Matrix::crossprod(Z %*% vectors))
  ── Error ('test_MFPCA_calculation.R:179:3'): MFPCA calculation function ────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─MFPCA:::calcMFPCA(...) at test_MFPCA_calculation.R:179:2
   2.   └─base::eigen(...)
   3.     ├─base::unname(as.matrix(x))
   4.     └─base::as.matrix(x)
  ── Error ('test_MFPCAfit.R:13:1'): (code run outside of `test_that()`) ─────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─MFPCA::MFPCA(...) at test_MFPCAfit.R:13:0
   2.   └─MFPCA:::calcMFPCA(...)
   3.     ├─base::diag(as.matrix(Matrix::crossprod(Z %*% vectors)))
   4.     └─base::as.matrix(Matrix::crossprod(Z %*% vectors))
  
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 306 ]
  Error: Test failures
  Execution halted