Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spectralGraphTopology)
  
  Attaching package: 'spectralGraphTopology'
  
  The following object is masked from 'package:stats':
  
      D
  
  > 
  > test_check("spectralGraphTopology")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 40 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-learnGraphTopology.R:14:3'): learn_k_component_graph with single component random graph ──
  Error in `max(werr/(w + w0), na.rm = "ignore")`: NA in coercion to Rboolean
  Backtrace:
      ▆
   1. └─spectralGraphTopology::learn_k_component_graph(...) at test-learnGraphTopology.R:14:3
   2.   └─pb$tick(...)
   3.     └─progress:::pb_tick(self, private, len, tokens)
   4.       └─progress:::assert_named_or_empty_list(tokens)
   5.         └─base::stopifnot(length(x) == 0 || !is.null(names(x)))
  ── Error ('test-learnGraphTopology.R:21:1'): (code run outside of `test_that()`) ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(all_pars, build_and_run_test, desc = desc_stub, code = captured, 
      .interpret_glue = .interpret_glue)`: ℹ In index: 1.
  Caused by error:
  ! Failed to parse glue component
  Caused by error in `parse()`:
  ! <text>:1:1: unexpected ','
  1: ,
      ^
  ── Error ('test-learnSmoothSignalGraph.R:9:1'): (code run outside of `test_that()`) ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(all_pars, build_and_run_test, desc = desc_stub, code = captured, 
      .interpret_glue = .interpret_glue)`: ℹ In index: 1.
  Caused by error:
  ! Failed to parse glue component
  Caused by error in `parse()`:
  ! <text>:1:1: unexpected ','
  1: ,
      ^
  ── Error ('test-operators.R:122:1'): (code run outside of `test_that()`) ───────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(all_pars, build_and_run_test, desc = desc_stub, code = captured, 
      .interpret_glue = .interpret_glue)`: ℹ In index: 1.
  Caused by error:
  ! Failed to parse glue component
  Caused by error in `parse()`:
  ! <text>:1:1: unexpected ','
  1: ,
      ^
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 40 ]
  Error: Test failures
  Execution halted