Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [9s/11s]
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-19
  lavaan is FREE software! Please report any bugs.
  [ FAIL 6 | WARN 0 | SKIP 42 | PASS 13 ]
  
  ══ Skipped tests (42) ══════════════════════════════════════════════════════════
  • DiagrammeRsvg cannot be loaded (6): 'test-cfa_fit_plot.R:30:3',
    'test-cfa_fit_plot.R:54:3', 'test-nice_lavaanPlot.R:48:3',
    'test-nice_lavaanPlot.R:57:3', 'test-nice_lavaanPlot.R:66:3',
    'test-nice_lavaanPlot.R:75:3'
  • On CRAN (22): 'test-cfa_fit_plot.R:39:3', 'test-lavaan_defined.R:33:3',
    'test-lavaan_defined.R:63:3', 'test-lavaan_defined.R:74:3',
    'test-nice_modindices.R:35:3', 'test-nice_modindices.R:42:3',
    'test-nice_modindices.R:58:3', 'test-write_lavaan.R:35:3',
    'test-write_lavaan.R:39:3', 'test-write_lavaan.R:43:3',
    'test-write_lavaan.R:47:3', 'test-write_lavaan.R:51:3',
    'test-write_lavaan.R:55:3', 'test-write_lavaan.R:63:3',
    'test-write_lavaan.R:73:3', 'test-write_lavaan.R:83:3',
    'test-write_lavaan.R:87:3', 'test-write_lavaan.R:91:3',
    'test-write_lavaan.R:95:3', 'test-write_lavaan.R:99:3',
    'test-write_lavaan.R:103:3', 'test-write_lavaan.R:107:3'
  • On Linux (1): 'test-lavaan_defined.R:39:3'
  • tidySEM cannot be loaded (13): 'test-nice_tidySEM.R:54:3',
    'test-nice_tidySEM.R:62:3', 'test-nice_tidySEM.R:69:3',
    'test-nice_tidySEM.R:77:3', 'test-nice_tidySEM.R:85:3',
    'test-nice_tidySEM.R:93:3', 'test-nice_tidySEM.R:101:3',
    'test-nice_tidySEM.R:113:3', 'test-nice_tidySEM.R:121:3',
    'test-nice_tidySEM.R:129:3', 'test-nice_tidySEM.R:137:3',
    'test-nice_tidySEM.R:145:3', 'test-nice_tidySEM.R:155: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), arg = "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), arg = "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_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), arg = "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), arg = "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), arg = "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:91:3'): nice_fit test categorical variable ──────────
  <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:91:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "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(...)
  
  [ FAIL 6 | WARN 0 | SKIP 42 | PASS 13 ]
  Error: Test failures
  Execution halted