tests/testthat/test-pkg_check.R

test_that("recipes_pkg_check() works", {
  expect_snapshot(
    recipes_pkg_check(pkg = "missing_pkg", dependencies = NA)
  )
  expect_snapshot(
    recipes_pkg_check(pkg = c("missing_pkg_1", "missing_pkg_2"))
  )
  expect_snapshot(
    recipes_pkg_check(pkg = NULL)
  )
})

Try the recipes package in your browser

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

recipes documentation built on Aug. 26, 2023, 1:08 a.m.