Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [18s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(lavaanExtra)
  Suggested APA citation: Thériault, R. (2023). lavaanExtra: Convenience functions for lavaan. 
  Journal of Open Source Software, 8(90), 5701. https://doi.org/10.21105/joss.05701
  > 
  > test_check("lavaanExtra")
  This is lavaan 0.6-20
  lavaan is FREE software! Please report any bugs.
  Saving _problems/test-lavaan_cor-36.R
  Saving _problems/test-lavaan_cov-36.R
  Saving _problems/test-lavaan_defined-43.R
  Saving _problems/test-lavaan_reg-35.R
  Saving _problems/test-lavaan_var-36.R
  Saving _problems/test-nice_fit-34.R
  Saving _problems/test-nice_fit-95.R
  Saving _problems/test-nice_fit-102.R
  Saving _problems/test-nice_fit-108.R
  Using standard SRMR (as unbiased SRMR is unavailable)
  Using standard SRMR (as unbiased SRMR is unavailable)
  Using standard SRMR (as unbiased SRMR is unavailable)
  Using standard SRMR (as unbiased SRMR is unavailable)
  [ FAIL 9 | WARN 0 | SKIP 28 | PASS 105 ]
  
  ══ Skipped tests (28) ══════════════════════════════════════════════════════════
  • On CRAN (22): 'test-cfa_fit_plot.R:39:3', 'test-lavaan_defined.R:32:1',
    'test-lavaan_defined.R:46:1', 'test-lavaan_defined.R:68:1',
    'test-nice_modindices.R:33:1', 'test-nice_modindices.R:40:1',
    'test-nice_modindices.R:51:1', 'test-write_lavaan.R:34:1',
    'test-write_lavaan.R:38:1', 'test-write_lavaan.R:42:1',
    'test-write_lavaan.R:46:1', 'test-write_lavaan.R:50:1',
    'test-write_lavaan.R:54:1', 'test-write_lavaan.R:62:1',
    'test-write_lavaan.R:72:1', 'test-write_lavaan.R:76:1',
    'test-write_lavaan.R:86:1', 'test-write_lavaan.R:90:1',
    'test-write_lavaan.R:94:1', 'test-write_lavaan.R:98:1',
    'test-write_lavaan.R:102:1', 'test-write_lavaan.R:106:1'
  • {lavaanPlot} is not installed (6): 'test-cfa_fit_plot.R:29:3',
    'test-cfa_fit_plot.R:53:3', 'test-nice_lavaanPlot.R:47:3',
    'test-nice_lavaanPlot.R:56:3', 'test-nice_lavaanPlot.R:65:3',
    'test-nice_lavaanPlot.R:74:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-lavaan_cor.R:33:3'): nice_fit as nice_table ────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, ...)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-lavaan_cor.R:33:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─lavaanExtra::lavaan_cor(fit, nice_table = TRUE)
   5.   └─lavaanExtra::lavaan_cov(fit, nice_table = nice_table, ...)
   6.     └─lavaanExtra::lavaan_extract(...)
   7.       └─rempsyc::nice_table(x, ...)
   8.         └─rlang::check_installed(...)
  ── Error ('test-lavaan_cov.R:33:3'): nice_fit as nice_table ────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, ...)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-lavaan_cov.R:33:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─lavaanExtra::lavaan_cov(fit, nice_table = TRUE)
   5.   └─lavaanExtra::lavaan_extract(...)
   6.     └─rempsyc::nice_table(x, ...)
   7.       └─rlang::check_installed(...)
  ── Error ('test-lavaan_defined.R:40:3'): nice_fit as nice_table ────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, ...)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-lavaan_defined.R:40:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─lavaanExtra::lavaan_defined(fit, nice_table = TRUE)
   5.   └─lavaanExtra::lavaan_extract(...)
   6.     └─rempsyc::nice_table(x, ...)
   7.       └─rlang::check_installed(...)
  ── Error ('test-lavaan_reg.R:32:3'): nice_fit as nice_table ────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, ...)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-lavaan_reg.R:32:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─lavaanExtra::lavaan_reg(fit, nice_table = TRUE)
   5.   └─lavaanExtra::lavaan_extract(...)
   6.     └─rempsyc::nice_table(x, ...)
   7.       └─rlang::check_installed(...)
  ── Error ('test-lavaan_var.R:33:3'): nice_fit as nice_table ────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, ...)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-lavaan_var.R:33:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─lavaanExtra::lavaan_var(fit, nice_table = TRUE)
   5.   └─rempsyc::nice_table(x, ...)
   6.     └─rlang::check_installed(...)
  ── Error ('test-nice_fit.R:32:3'): nice_fit as nice_table ──────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, stars = stars)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(nice_fit(fit, nice_table = TRUE), "flextable") at test-nice_fit.R:32:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─lavaanExtra::nice_fit(fit, nice_table = TRUE)
   5.   └─rempsyc::nice_table(x, stars = stars)
   6.     └─rlang::check_installed(...)
  ── Error ('test-nice_fit.R:93:3'): nice_fit test categorical variable with nice_table ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, stars = stars)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-nice_fit.R:93:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─lavaanExtra::nice_fit(fit, nice_table = TRUE, verbose = FALSE)
   5.   └─rempsyc::nice_table(x, stars = stars)
   6.     └─rlang::check_installed(...)
  ── Error ('test-nice_fit.R:102:3'): nice_fit with guidelines = FALSE ───────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, stars = stars)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. └─lavaanExtra::nice_fit(...) at test-nice_fit.R:102:3
   2.   └─rempsyc::nice_table(x, stars = stars)
   3.     └─rlang::check_installed(...)
  ── Error ('test-nice_fit.R:108:3'): nice_fit with stars = TRUE ─────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `rempsyc::nice_table(x, stars = stars)`: The package "flextable" (>= 0.9.1) is required for this function.
  Backtrace:
      ▆
   1. └─lavaanExtra::nice_fit(fit, nice_table = TRUE, stars = TRUE, verbose = FALSE) at test-nice_fit.R:108:3
   2.   └─rempsyc::nice_table(x, stars = stars)
   3.     └─rlang::check_installed(...)
  
  [ FAIL 9 | WARN 0 | SKIP 28 | PASS 105 ]
  Error:
  ! Test failures.
  Execution halted