tests/testthat/test-ggseg-adapt_scales.R

test_that("Check that scales are working", {
  dk2 <- as_ggseg_atlas(dk)
  expect_equal(class(adapt_scales(unnest(dk2, ggseg))), "list")

  aseg2 <- as_ggseg_atlas(aseg)
  expect_equal(class(adapt_scales(unnest(aseg2, ggseg))), "list")
})

Try the ggseg package in your browser

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

ggseg documentation built on Dec. 22, 2025, 5:06 p.m.