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
}

Try the dat package in your browser

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

dat documentation built on July 1, 2020, 7:11 p.m.