tests/testthat/test-onload.R

test_that("test if dbplyr major and minor versions are collected correctly", {
  skip_if_no_env()
  skip_if_package_not_avialable("dbplyr")
  
  library(dbplyr)
  
  dbplyr_major = packageVersion("dbplyr")$major
  dbplyr_minor = packageVersion("dbplyr")$minor
  
  RAthena:::dbplyr_version()
  
  expect_equal(RAthena:::dbplyr_env$major, dbplyr_major)
  expect_equal(RAthena:::dbplyr_env$minor, dbplyr_minor)
})

Try the RAthena package in your browser

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

RAthena documentation built on Jan. 27, 2022, 1:09 a.m.