Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(cfid)
  > 
  > test_check("cfid")
  [ FAIL 12 | WARN 1 | SKIP 0 | PASS 38 ]
  
  == Failed tests ================================================================
  -- Error (test-algorithms.R:3:1): (code run outside of `test_that()`) ----------
  Error in `gregexec(pattern, x, perl)`: could not find function "gregexec"
  Backtrace:
      x
   1. \-cfid::dag("X -> W -> Y <- Z <- D X <-> Y") at test-algorithms.R:3:0
   2.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Error (test-counterfactuals.R:50:5): arithmetic -----------------------------
  Error in `conj(v1) + v2`: non-numeric argument to binary operator
  Backtrace:
      x
   1. \-testthat::expect_identical(conj(v1) + v2, c1) at test-counterfactuals.R:50:4
   2.   \-testthat::quasi_label(enquo(object), label, arg = "object")
   3.     \-rlang::eval_bare(expr, quo_get_env(quo))
  -- Error (test-graphs.R:10:5): extra delimiter invariance ----------------------
  Error in `gregexec(pattern, x, perl)`: could not find function "gregexec"
  Backtrace:
      x
   1. +-testthat::expect_identical(dag("X -> Y -> Z"), dag("X -> Y; Y -> Z")) at test-graphs.R:10:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-cfid::dag("X -> Y -> Z")
   5.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Error (test-graphs.R:16:5): zero edges is allowed ---------------------------
  Error in `gregexec(pattern, x, perl)`: could not find function "gregexec"
  Backtrace:
      x
   1. +-testthat::expect_length(attr(dag("X Y Z"), "labels"), 3) at test-graphs.R:16:4
   2. | \-testthat::quasi_label(enquo(object), arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-cfid::dag("X Y Z")
   5.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Error (test-graphs.R:21:5): duplicate edge invariance -----------------------
  Error in `gregexec(pattern, x, perl)`: could not find function "gregexec"
  Backtrace:
      x
   1. +-testthat::expect_identical(dag("X -> Y <- X"), dag("X -> Y")) at test-graphs.R:21:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-cfid::dag("X -> Y <- X")
   5.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Failure (test-graphs.R:42:5): allowed structures ----------------------------
  `dag("x -> {y z} <- w <-> g")` threw an unexpected error.
  Message: could not find function "gregexec"
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(dag("x -> {y z} <- w <-> g"), NA) at test-graphs.R:42:4
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat .capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-cfid::dag("x -> {y z} <- w <-> g")
   8.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Failure (test-graphs.R:43:5): allowed structures ----------------------------
  `dag("{x z} -> {y w}")` threw an unexpected error.
  Message: could not find function "gregexec"
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(dag("{x z} -> {y w}"), NA) at test-graphs.R:43:4
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat .capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-cfid::dag("{x z} -> {y w}")
   8.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Failure (test-graphs.R:44:5): allowed structures ----------------------------
  `dag("x -> z -> y; x <-> y")` threw an unexpected error.
  Message: could not find function "gregexec"
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(dag("x -> z -> y; x <-> y"), NA) at test-graphs.R:44:4
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat .capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-cfid::dag("x -> z -> y; x <-> y")
   8.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Failure (test-graphs.R:45:5): allowed structures ----------------------------
  `dag("{x, y, z} -> w")` threw an unexpected error.
  Message: could not find function "gregexec"
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(dag("{x, y, z} -> w"), NA) at test-graphs.R:45:4
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat .capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-cfid::dag("{x, y, z} -> w")
   8.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Failure (test-graphs.R:46:5): allowed structures ----------------------------
  `dag("z -> w\nx -> y")` threw an unexpected error.
  Message: could not find function "gregexec"
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(dag("z -> w\nx -> y"), NA) at test-graphs.R:46:4
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat .capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-cfid::dag("z -> w\nx -> y")
   8.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Error (test-graphs.R:51:1): (code run outside of `test_that()`) -------------
  Error in `gregexec(pattern, x, perl)`: could not find function "gregexec"
  Backtrace:
      x
   1. \-cfid::dag("X -> W -> Y <- Z <- D X <-> Y") at test-graphs.R:51:0
   2.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  -- Error (test-probability.R:13:1): (code run outside of `test_that()`) --------
  Error in `gregexec(pattern, x, perl)`: could not find function "gregexec"
  Backtrace:
      x
   1. \-cfid::dag("X -> W -> Y <- Z <- D X <-> Y") at test-probability.R:13:0
   2.   \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)")
  
  [ FAIL 12 | WARN 1 | SKIP 0 | PASS 38 ]
  Error: Test failures
  Execution halted