tests/testthat/test-ga_cachix.R

testthat::test_that("Snapshot test of ga_cachix()", {
  skip_if(Sys.info()["sysname"] != "Linux")

  testthat::expect_snapshot_file(
    path = ga_cachix(cache_name = "rstats-on-nix", path = "default.nix"),
    name = "cachix_dev_env.yaml"
  )
})

Try the rix package in your browser

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

rix documentation built on Sept. 11, 2025, 5:12 p.m.