inst/test_engines.R

RE2.available <- requireNamespace("re2r", quietly=TRUE)
available.engines <- c("PCRE", if(RE2.available)"RE2")
test_engines <- function(desc, ...){
  for(e in available.engines){
    old.opt <- options(namedCapture.engine=e)
    test_that(paste(e, desc), ...)
    options(old.opt)
  }
}

Try the namedCapture package in your browser

Any scripts or data that you put into this service are public.

namedCapture documentation built on April 2, 2020, 1:07 a.m.