tests/testthat/helper-with-dplyr.R

WITH_DPLYR <- function(expr) {
  old <- options(dat.use.dplyr = TRUE)
  on.exit(options(old))
  expr
}

WITHOUT_DPLYR <- function(expr) {
  old <- options(dat.use.dplyr = FALSE)
  on.exit(options(old))
  expr
}
wahani/dat documentation built on Dec. 8, 2020, 10:57 a.m.