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 Sept. 22, 2023, 9:06 a.m.