Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bracer)
  > 
  > test_check("bracer")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Not supported yet with 'r' engine (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_expand.R:15:5): Some simple test cases ──────────────────────────
  Error: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_message(expand_braces("{C..F}"), "Setting 'engine' argument to") test_expand.R:15:4
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─bracer::expand_braces("{C..F}")
    7.   └─bracer::str_expand_braces(string, engine = engine)
    8.     └─base::lapply(string, expand_braces_v8)
    9.       └─bracer:::FUN(X[[i]], ...)
   10.         └─bracer_env$js$source(system.file("js/braces_bundle.js", package = "bracer"))
   11.           └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   12.             ├─V8:::get_str_output(...)
   13.             └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test_expand.R:279:5): Bash 4.3 unit tests with 'expand_braces_v8' ────
  Error: ReferenceError: braces is not defined
  Backtrace:
      █
   1. ├─testthat::expect_equal(expand_braces_v8("{1\\.2}"), c("{1.2}")) test_expand.R:279:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─bracer:::expand_braces_v8("{1\\.2}")
   5.   └─bracer_env$js$eval(cmd)
   6.     └─V8:::evaluate_js(src, serialize = serialize)
   7.       ├─V8:::get_str_output(...)
   8.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test_glob.R:3:5): glob ───────────────────────────────────────────────
  Error: ReferenceError: braces is not defined
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test_glob.R:3:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::basename(glob(path))
    5. └─bracer::glob(path)
    6.   └─bracer::expand_braces(paths, engine = engine)
    7.     └─bracer::str_expand_braces(string, engine = engine)
    8.       └─base::lapply(string, expand_braces_v8)
    9.         └─bracer:::FUN(X[[i]], ...)
   10.           └─bracer_env$js$eval(cmd)
   11.             └─V8:::evaluate_js(src, serialize = serialize)
   12.               ├─V8:::get_str_output(...)
   13.               └─V8:::context_eval(join(src), private$context, serialize)
  
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 133 ]
  Error: Test failures
  Execution halted