Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cyclocomp)
  > 
  > test_check("cyclocomp")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● Takes too long to run currently (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-andor.R:7:3): && works well ─────────────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 2) test-andor.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-andor.R:14:3): || works well ────────────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 2) test-andor.R:14:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-break.R:7:3): break in simple loops ─────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 4) test-break.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-break.R:25:3): break in the loop condition ──────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 6) test-break.R:25:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-calls.R:7:3): function calls are OK ─────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 1) test-calls.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-cyclocomp-package.R:5:3): cyclocomp_package ─────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. └─cyclocomp::cyclocomp_package("cyclocomp") test-cyclocomp-package.R:5:2
   2.   └─base::vapply(...)
   3.     └─cyclocomp:::FUN(X[[i]], ...)
   4.       └─cyclocomp::cyclocomp(get(n, asNamespace(package)))
   5.         └─cyclocomp:::flowgraph(expr)
   6.           └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-cyclocomp_q.R:7:3): cyclocomp_q works the same as cyclocomp + quote ──
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-cyclocomp_q.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp_q(if (TRUE) "foo" else if (FALSE) "bar" else "baz")
   5.   └─cyclocomp::cyclocomp(substitute(expr))
   6.     └─cyclocomp:::flowgraph(expr)
   7.       └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-function.R:7:3): function definitions work ──────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 1) test-function.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-if.R:7:3): simple if statements ─────────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 2) test-if.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-next.R:7:3): next works ─────────────────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 4) test-next.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-repeat.R:7:3): simple repeat loops ──────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 2) test-repeat.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-return.R:13:3): returns work well ───────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 2) test-return.R:13:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  ── Error (test-seq.R:7:3): sequences are simple ────────────────────────────────
  Error: replacement has length zero
  Backtrace:
      █
   1. ├─testthat::expect_equal(cyclocomp(f), 1) test-seq.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cyclocomp::cyclocomp(f)
   5.   └─cyclocomp:::flowgraph(expr)
   6.     └─cyclocomp:::add_node(NULL, "2", "exit")
  
  [ FAIL 13 | WARN 0 | SKIP 1 | PASS 0 ]
  Error: Test failures
  Execution halted