tests/testthat/test-rng.R

test_that("R help contains guarantee on number of RNG bits", {
  skip_on_cran()

  # utils:::.getHelpFile
  get_help_file <- get(".getHelpFile", envir = asNamespace("utils"))
  text <- capture.output(tools::Rd2txt(get_help_file(help("Random"))))

  expect_true(any(grepl("all give at least 30 varying bits", text, fixed = TRUE)))
})

Try the igraph package in your browser

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

igraph documentation built on Oct. 20, 2024, 1:06 a.m.