Running ‘testthat.R’ [116s/166s]
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. Failure: test MFPCA main function (@test_MFPCA_calculation.R#148)  ───────
  splinesBoot$CIvalues$alpha_0.05$upper[1] not equal to 1.39716.
  1/1 mismatches
  [1] 1.4 - 1.4 == -0.00168
  
  ── 2. Failure: test MFPCA main function (@test_MFPCA_calculation.R#149)  ───────
  sum(splinesBoot$CIvalues$alpha_0.05$upper) not equal to 3.51558.
  1/1 mismatches
  [1] 3.56 - 3.52 == 0.048
  
  ── 3. Failure: test MFPCA main function (@test_MFPCA_calculation.R#150)  ───────
  splinesBoot$CIvalues$alpha_0.05$lower[1] not equal to 0.82537.
  1/1 mismatches
  [1] 0.755 - 0.825 == -0.0704
  
  ── 4. Failure: test MFPCA main function (@test_MFPCA_calculation.R#151)  ───────
  sum(splinesBoot$CIvalues$alpha_0.05$lower) not equal to 2.24919.
  1/1 mismatches
  [1] 2.2 - 2.25 == -0.0442
  
  ── 5. Failure: test MFPCA main function (@test_MFPCA_calculation.R#153)  ───────
  norm(splinesBoot$CI$alpha_0.05$upper)[1] not equal to 0.266934.
  1/1 mismatches
  [1] 1.05 - 0.267 == 0.783
  
  ── 6. Failure: test MFPCA main function (@test_MFPCA_calculation.R#155)  ───────
  norm(splinesBoot$CI$alpha_0.05$lower)[1] not equal to 2.02265.
  1/1 mismatches
  [1] 1.28 - 2.02 == -0.739
  
  ── 7. Failure: test MFPCA main function (@test_MFPCA_calculation.R#162)  ───────
  uFPCABoot$CIvalues$alpha_0.1$upper[1] not equal to 1.14779.
  1/1 mismatches
  [1] 1.18 - 1.15 == 0.0336
  
  ── 8. Failure: test MFPCA main function (@test_MFPCA_calculation.R#163)  ───────
  sum(uFPCABoot$CIvalues$alpha_0.1$upper) not equal to 2.40996.
  1/1 mismatches
  [1] 2.43 - 2.41 == 0.0162
  
  ── 9. Failure: test MFPCA main function (@test_MFPCA_calculation.R#164)  ───────
  uFPCABoot$CIvalues$alpha_0.1$lower[1] not equal to 0.84857.
  1/1 mismatches
  [1] 0.919 - 0.849 == 0.0704
  
  ── 10. Failure: test MFPCA main function (@test_MFPCA_calculation.R#165)  ──────
  sum(uFPCABoot$CIvalues$alpha_0.1$lower) not equal to 1.80924.
  1/1 mismatches
  [1] 1.94 - 1.81 == 0.13
  
  ── 11. Failure: test MFPCA main function (@test_MFPCA_calculation.R#168)  ──────
  norm(uFPCABoot$CI$alpha_0.1$upper - uFPCABoot$CI$alpha_0.1$lower)[1] not equal to 0.52392.
  1/1 mismatches
  [1] 0.472 - 0.524 == -0.0522
  
  ── 12. Failure: test MFPCA main function (@test_MFPCA_calculation.R#169)  ──────
  sum(norm(uFPCABoot$CI$alpha_0.1$upper - uFPCABoot$CI$alpha_0.1$lower)) not equal to 8.98431.
  1/1 mismatches
  [1] 8.77 - 8.98 == -0.218
  
  ── 13. Failure: PACE function (@test_univDecomp.R#181)  ────────────────────────
  pca1Dirreg$npc not equal to 4.
  1/1 mismatches
  [1] 5 - 4 == 1
  
  ── 14. Failure: PACE function (@test_univDecomp.R#183)  ────────────────────────
  mean(norm(pca1Dirreg$fit)) not equal to 4.12973.
  1/1 mismatches
  [1] 3.92 - 4.13 == -0.213
  
  ── 15. Failure: PACE function (@test_univDecomp.R#184)  ────────────────────────
  dim(pca1Dirreg$scores) not equal to c(10, 4).
  1/2 mismatches
  [2] 5 - 4 == 1
  
  ── 16. Failure: PACE function (@test_univDecomp.R#185)  ────────────────────────
  mean(abs(pca1Dirreg$scores)) not equal to 0.71889.
  1/1 mismatches
  [1] 0.671 - 0.719 == -0.0479
  
  ── 17. Failure: PACE function (@test_univDecomp.R#187)  ────────────────────────
  norm(pca1Dirreg$mu) not equal to 0.99891.
  1/1 mismatches
  [1] 0.329 - 0.999 == -0.67
  
  ── 18. Failure: PACE function (@test_univDecomp.R#188)  ────────────────────────
  nObs(pca1Dirreg$functions) not equal to 4.
  1/1 mismatches
  [1] 5 - 4 == 1
  
  ── 19. Failure: PACE function (@test_univDecomp.R#189)  ────────────────────────
  norm(pca1Dirreg$functions) not equal to rep(1, 4).
  Lengths differ: 5 is not 4
  
  ── 20. Failure: PACE function (@test_univDecomp.R#190)  ────────────────────────
  sum(pca1Dirreg$values) not equal to 3.65081.
  1/1 mismatches
  [1] 4.4 - 3.65 == 0.749
  
  ── 21. Failure: PACE function (@test_univDecomp.R#191)  ────────────────────────
  pca1Dirreg$values[1] not equal to 2.10068.
  1/1 mismatches
  [1] 1.73 - 2.1 == -0.375
  
  ── 22. Failure: PACE function (@test_univDecomp.R#192)  ────────────────────────
  pca1Dirreg$sigma2 not equal to 0.4883.
  1/1 mismatches
  [1] 0 - 0.488 == -0.488
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 381 SKIPPED: 7 FAILED: 22
  1. Failure: test MFPCA main function (@test_MFPCA_calculation.R#148) 
  2. Failure: test MFPCA main function (@test_MFPCA_calculation.R#149) 
  3. Failure: test MFPCA main function (@test_MFPCA_calculation.R#150) 
  4. Failure: test MFPCA main function (@test_MFPCA_calculation.R#151) 
  5. Failure: test MFPCA main function (@test_MFPCA_calculation.R#153) 
  6. Failure: test MFPCA main function (@test_MFPCA_calculation.R#155) 
  7. Failure: test MFPCA main function (@test_MFPCA_calculation.R#162) 
  8. Failure: test MFPCA main function (@test_MFPCA_calculation.R#163) 
  9. Failure: test MFPCA main function (@test_MFPCA_calculation.R#164) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted