tests/testthat/test-checkDependencies.R

library(DependencyReviewer)
library(testthat)
library(withr)

# Set R_USER_CAHCE_DIR to tmpfile for tests
local_envvar(
  R_USER_CACHE_DIR = tempfile()
)

# Test with base
test_that("base", {
  skip_if_offline()
  expect_message(checkDependencies(packageName = "base"))
})

Try the DependencyReviewer package in your browser

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

DependencyReviewer documentation built on March 31, 2023, 9:30 p.m.