tests/testthat/test-source.R

test_that("multiplication works", {
  expect_snapshot(error = TRUE, {
    source_many(test_path("testSource", c("a.R", "b.R")))
  })
})

Try the pkgload package in your browser

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

pkgload documentation built on June 28, 2024, 5:07 p.m.