tests/testthat/test-tutorials_netrics.R

# test_that("netrics tutorials work", {
#   for(tute in find_pkg_tutorial_paths("netrics")){
#     expect_null(check_tute_rendering(tute))
#   }
# })

test_that("netrics tutorial code runs without warnings or errors", {
  skip_if_not_installed("netrics", minimum_version = "0.2.2")
  for(tute in find_pkg_tutorial_paths("netrics")){
    expect_null(check_tute_functions(tute), 
                info = paste("Error in tutorial", basename(tute)))
  }
})

Try the migraph package in your browser

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

migraph documentation built on April 18, 2026, 1:06 a.m.