Running 'testthat.R' [27s/29s]
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")
  -- 1. Error: test calcBasisIntegrals (@test_MFPCA_calculation.R#9)  ------------
  WEIRD RETURN VALUE: 0xa
  Backtrace:
    1. MFPCA::univExpansion(...)
    4. mgcv::gam(...)
    6. mgcv:::gam.setup(...)
    7. mgcv::smoothCon(...)
    8. mgcv:::smooth.construct3(object, data, knots)
   10. mgcv::smooth.construct.tensor.smooth.spec(object, dk$data, dk$knots)
   11. mgcv::tensor.prod.model.matrix(Xm)
  
  -- 2. Error: test MFPCA main function (@test_MFPCA_calculation.R#73)  ----------
  WEIRD RETURN VALUE: 0xa
  Backtrace:
    1. testthat::expect_warning(...)
    6. MFPCA::MFPCA(...)
    7. base::mapply(...)
   13. MFPCA::PACE(...)
   14. MFPCA:::.PACE(...)
   17. mgcv::gam(...)
   19. mgcv:::gam.setup(...)
   20. mgcv::smoothCon(...)
   21. mgcv:::smooth.construct3(object, data, knots)
   23. mgcv::smooth.construct.tensor.smooth.spec(object, dk$data, dk$knots)
   24. mgcv::tensor.prod.model.matrix(Xm)
  
  -- 3. Error: MFPCA calculation function (@test_MFPCA_calculation.R#177)  -------
  WEIRD RETURN VALUE: 0xa
  Backtrace:
    1. MFPCA::univDecomp("uFPCA", sim$simData, npc = 3)
    4. MFPCA::PACE(...)
    5. MFPCA:::.PACE(...)
    8. mgcv::gam(...)
   10. mgcv:::gam.setup(...)
   11. mgcv::smoothCon(...)
   12. mgcv:::smooth.construct3(object, data, knots)
   14. mgcv::smooth.construct.tensor.smooth.spec(object, dk$data, dk$knots)
   15. mgcv::tensor.prod.model.matrix(Xm)
  
  -- 4. Error: (unknown) (@test_MFPCAfit.R#13)  ----------------------------------
  WEIRD RETURN VALUE: 0xa
  Backtrace:
    1. MFPCA::MFPCA(...)
    2. base::mapply(...)
    8. MFPCA::PACE(...)
    9. MFPCA:::.PACE(...)
   12. mgcv::gam(...)
   14. mgcv:::gam.setup(...)
   15. mgcv::smoothCon(...)
   16. mgcv:::smooth.construct3(object, data, knots)
   18. mgcv::smooth.construct.tensor.smooth.spec(object, dk$data, dk$knots)
   19. mgcv::tensor.prod.model.matrix(Xm)
  
  -- 5. Error: test univariate decompositions 1D (@test_univDecomp.R#51)  --------
  WEIRD RETURN VALUE: 0xa
  Backtrace:
    1. MFPCA:::fpcaBasis(f1, pve = 0.95)
    2. MFPCA::PACE(...)
    3. MFPCA:::.PACE(...)
    6. mgcv::gam(...)
    8. mgcv:::gam.setup(...)
    9. mgcv::smoothCon(...)
   10. mgcv:::smooth.construct3(object, data, knots)
   12. mgcv::smooth.construct.tensor.smooth.spec(object, dk$data, dk$knots)
   13. mgcv::tensor.prod.model.matrix(Xm)
  
  -- 6. Error: PACE function (@test_univDecomp.R#147)  ---------------------------
  WEIRD RETURN VALUE: 0xa
  Backtrace:
    1. MFPCA::PACE(f1, pve = 0.95)
    2. MFPCA:::.PACE(...)
    5. mgcv::gam(...)
    7. mgcv:::gam.setup(...)
    8. mgcv::smoothCon(...)
    9. mgcv:::smooth.construct3(object, data, knots)
   11. mgcv::smooth.construct.tensor.smooth.spec(object, dk$data, dk$knots)
   12. mgcv::tensor.prod.model.matrix(Xm)
  
  -- 7. Error: test univariate decompositions 2D (@test_univDecomp.R#243)  -------
  WEIRD RETURN VALUE: 0x8
  Backtrace:
   1. MFPCA:::splineBasis2D(f2, bs = "ps", m = c(2, 3), k = c(8, 10))
   2. mgcv::gam(...)
   4. mgcv:::gam.setup(...)
   5. mgcv::smoothCon(...)
   6. mgcv:::smooth.construct3(object, data, knots)
   8. mgcv::smooth.construct.tensor.smooth.spec(object, dk$data, dk$knots)
   9. mgcv::tensor.prod.model.matrix(Xm)
  
  -- 8. Error: test univariate expansions 2D (@test_univExpansion.R#87)  ---------
  WEIRD RETURN VALUE: 0x5
  Backtrace:
   1. MFPCA:::splineFunction2D(...)
   2. mgcv::gam(...)
   4. mgcv:::gam.setup(...)
   5. mgcv::smoothCon(...)
   6. mgcv:::smooth.construct3(object, data, knots)
   8. mgcv::smooth.construct.tensor.smooth.spec(object, dk$data, dk$knots)
   9. mgcv::tensor.prod.model.matrix(Xm)
  
  == testthat results  ===========================================================
  [ OK: 169 | SKIPPED: 6 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: test calcBasisIntegrals (@test_MFPCA_calculation.R#9) 
  2. Error: test MFPCA main function (@test_MFPCA_calculation.R#73) 
  3. Error: MFPCA calculation function (@test_MFPCA_calculation.R#177) 
  4. Error: (unknown) (@test_MFPCAfit.R#13) 
  5. Error: test univariate decompositions 1D (@test_univDecomp.R#51) 
  6. Error: PACE function (@test_univDecomp.R#147) 
  7. Error: test univariate decompositions 2D (@test_univDecomp.R#243) 
  8. Error: test univariate expansions 2D (@test_univExpansion.R#87) 
  
  Error: testthat unit tests failed
  Execution halted