tests/testthat/test-getGraphData.R

library(DependencyReviewer)
library(testthat)

local_envvar(
  R_USER_CACHE_DIR = tempfile()
)

test_that("getGraphData", {
  skip_if_offline()
  expect_s3_class(getGraphData(
    system.file(package = "base")), "igraph")
})

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.