Running ‘testthat.R’ [5s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("namedCapture")
  Loading required package: namedCapture
   Factor w/ 1 level "bar": 1
   Factor w/ 1 level "bar": 1
  ── 1. Failure: RE2 (?<name>pattern) syntax is an error (@test-CRAN-engine.R#14) 
  `{ ... }` did not throw an error.
  
  ── 2. Failure: engine foobar means use default=RE2 (@test-CRAN-engine.R#21)  ───
  engine() not identical to "RE2".
  1/1 mismatches
  x[1]: "PCRE"
  y[1]: "RE2"
  
   chr NA
   Factor w/ 1 level "(?P<regex>foo)": 1
   chr [1:2] "(?P<name>.)" "(?P<name>.)"
   chr(0) 
    chrom name
  2  chr2  300
  3  chr2  300
    chrom name
  2  chr2  300
  3  chr2  300
    name chromStart
  2 chr2        300
  3 chr2        300
    name chromStart
  2 <NA>       <NA>
    name chromStart
  2 <NA>       <NA>
  3 <NA>       <NA>
    name chromStart
  2 <NA>       <NA>
         name       value
  1 assayType Myeloidcell
  3 assayType     H3K4me3
   chr NA
   Factor w/ 1 level "(?P<regex>foo)": 1
   chr [1:2] "(?P<name>.)" "(?P<name>.)"
   chr(0) 
    chrom name
  2  chr2  300
  3  chr2  300
    chrom name
  2  chr2  300
  3  chr2  300
    name chromStart
  2 chr2        300
  3 chr2        300
    name chromStart
  2 <NA>       <NA>
    name chromStart
  2 <NA>       <NA>
  3 <NA>       <NA>
    name chromStart
  2 <NA>       <NA>
         name       value
  1 assayType Myeloidcell
  3 assayType     H3K4me3
  [1] "bar" "baz"
  [1] "bar" "baz"
  character(0)
  character(0)
  [1] 1
  [1] 1
  [1] "this will not match" NA                   
  [1] "this will not match" NA                   
  [1] "bar" "baz"
  [1] "bar" "baz"
  character(0)
  character(0)
  [1] 1
  [1] 1
  [1] "this will not match" NA                   
  [1] "this will not match" NA                   
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 293 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Failure: RE2 (?<name>pattern) syntax is an error (@test-CRAN-engine.R#14) 
  2. Failure: engine foobar means use default=RE2 (@test-CRAN-engine.R#21) 
  
  Error: testthat unit tests failed
  Execution halted