Nothing
test_that("npregiv ridging loops avoid superassignment", {
src_path <- testthat::test_path("..", "..", "R", "npregiv.R")
skip_if_not(file.exists(src_path), "source R files unavailable in installed test context")
src <- paste(readLines(src_path, warn = FALSE), collapse = "\n")
expect_false(grepl("<<-", src, fixed = TRUE))
})
test_that("npregiv uses shared seed enter helper", {
src_path <- testthat::test_path("..", "..", "R", "npregiv.R")
skip_if_not(file.exists(src_path), "source R files unavailable in installed test context")
src <- paste(readLines(src_path, warn = FALSE), collapse = "\n")
expect_true(grepl("\\.np_seed_enter\\(random\\.seed\\)", src))
expect_false(grepl("exists\\(\"\\.Random\\.seed\"", src))
expect_true(grepl("\\.np_seed_exit\\(seed\\.state, remove_if_absent = TRUE\\)", src))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.