Running ‘testthat.R’ [289s/211s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(seminr)
  > Sys.unsetenv("R_TESTS")
  > test_check("seminr")
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model for CFA
  Generating the seminr model for CBSEM
  Generating the seminr model for CBSEM
  Generating the seminr model for CBSEM
  Generating the seminr model for CFA
  Generating the seminr model for CFA
  Generating the seminr model for CBSEM
  Generating the seminr model for CBSEM
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  Generating the seminr model
  All 250 observations are valid.
  All 250 observations are valid.
  Generating the seminr model
  Generating the seminr model
  All 250 observations are valid.
  All 250 observations are valid.
  Generating the seminr model
  NOTE: Importing lavaan syntax is currently experimental -- some features might not be supported
        Please verify imported model features carefully
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model for CBSEM
  Generating the seminr model for CBSEM
  NOTE: Importing lavaan syntax is currently experimental -- some features might not be supported
        Please verify imported model features carefully
  NOTE: Importing lavaan syntax is currently experimental -- some features might not be supported
        Please verify imported model features carefully
  Generating the seminr model for CFA
  Generating the seminr model for CFA
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model for CFA
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model for CBSEM
  Generating the seminr model for CBSEM
  Generating the seminr model
  Generating the seminr model
  All 250 observations are valid.
  All 250 observations are valid.
  Generating the seminr model
  Generating the seminr model
  All 250 observations are valid.
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  Generating the seminr model
  All 250 observations are valid.
  All 250 observations are valid.
  Generating the seminr model
  Generating the seminr model
  All 250 observations are valid.
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model for CFA
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model for CBSEM
  Generating the seminr model for CBSEM
  Generating the seminr model for CFA
  Generating the seminr model for CFA
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model for CBSEM
  Generating the seminr model for CFA
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 344 observations are valid.
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-plot-cbsem.R:26:3): dot_graph does not fail for cbsem models ──
  `dot_graph(model_cb)` threw an error.
  Message: there is no package called 'semPlot'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(dot_graph(model_cb), NA) test-plot-cbsem.R:26:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─seminr::dot_graph(model_cb)
    7. └─seminr:::dot_graph.cbsem_model(model_cb)
    8.   └─semPlot::semPaths
    9.     └─base::getExportedValue(pkg, name)
   10.       └─base::asNamespace(ns)
   11.         └─base::getNamespace(ns)
   12.           └─base::loadNamespace(name)
   13.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.               └─base:::withOneRestart(expr, restarts[[1L]])
   15.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-plot-cbsem.R:40:3): dot_graph does not fail for cbsem models ──
  `dot_graph(model_cb, what = "std")` threw an error.
  Message: there is no package called 'semPlot'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(dot_graph(model_cb, what = "std"), NA) test-plot-cbsem.R:40:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─seminr::dot_graph(model_cb, what = "std")
    7. └─seminr:::dot_graph.cbsem_model(model_cb, what = "std")
    8.   └─semPlot::semPaths
    9.     └─base::getExportedValue(pkg, name)
   10.       └─base::asNamespace(ns)
   11.         └─base::getNamespace(ns)
   12.           └─base::loadNamespace(name)
   13.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.               └─base:::withOneRestart(expr, restarts[[1L]])
   15.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-plot-cbsem.R:41:3): dot_graph does not fail for cbsem models ──
  `plot(model_cb, what = "std")` threw an error.
  Message: there is no package called 'semPlot'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(plot(model_cb, what = "std"), NA) test-plot-cbsem.R:41:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::plot(model_cb, what = "std")
    7. └─seminr:::plot.seminr_model(model_cb, what = "std")
    8.   └─seminr:::dot_graph.cbsem_model(model, ...)
    9.     └─semPlot::semPaths
   10.       └─base::getExportedValue(pkg, name)
   11.         └─base::asNamespace(ns)
   12.           └─base::getNamespace(ns)
   13.             └─base::loadNamespace(name)
   14.               └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.                 └─base:::withOneRestart(expr, restarts[[1L]])
   16.                   └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-plot-lavaan-cfa.R:14:4): Graphing confirmatory factory analysis works ──
  `dot_graph(mobi_cfa)` threw an error.
  Message: there is no package called 'semPlot'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(dot_graph(mobi_cfa), NA) test-plot-lavaan-cfa.R:14:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─seminr::dot_graph(mobi_cfa)
    7. └─seminr:::dot_graph.cfa_model(mobi_cfa)
    8.   └─semPlot::semPaths
    9.     └─base::getExportedValue(pkg, name)
   10.       └─base::asNamespace(ns)
   11.         └─base::getNamespace(ns)
   12.           └─base::loadNamespace(name)
   13.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.               └─base:::withOneRestart(expr, restarts[[1L]])
   15.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-plot-lavaan-cfa.R:15:4): Graphing confirmatory factory analysis works ──
  `plot(mobi_cfa)` threw an error.
  Message: there is no package called 'semPlot'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(plot(mobi_cfa), NA) test-plot-lavaan-cfa.R:15:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::plot(mobi_cfa)
    7. └─seminr:::plot.seminr_model(mobi_cfa)
    8.   └─seminr:::dot_graph.cfa_model(model, ...)
    9.     └─semPlot::semPaths
   10.       └─base::getExportedValue(pkg, name)
   11.         └─base::asNamespace(ns)
   12.           └─base::getNamespace(ns)
   13.             └─base::loadNamespace(name)
   14.               └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.                 └─base:::withOneRestart(expr, restarts[[1L]])
   16.                   └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-plot-save-plot.R:37:5): Saving a plot works ─────────────────────
  Error: there is no package called 'rsvg'
  Backtrace:
      █
   1. └─seminr::save_plot(fname, p) test-plot-save-plot.R:37:4
   2.   └─rsvg::rsvg_pdf
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 184 ]
  Error: Test failures
  Execution halted