tests/testthat/test-get_project_package.R

testthat::test_that("get_project_pkg", {
  testthat::expect_equal(get_project_pkg(),
               if (!rstudioapi::isAvailable())  NULL else  "origin")
})

Try the origin package in your browser

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

origin documentation built on April 3, 2025, 11:03 p.m.