tests/testthat/test-ggseg.formats_package.R

describe("ggseg.formats package", {
  it("is an installed, documented package", {
    expect_identical(
      utils::packageDescription("ggseg.formats")$Package,
      "ggseg.formats"
    )
  })

  it("exports its core atlas constructors", {
    constructors <- c("dk", "aseg", "tracula", "suit")
    expect_true(all(vapply(
      constructors,
      function(f) is.function(get(f, envir = asNamespace("ggseg.formats"))),
      logical(1)
    )))
  })
})

Try the ggseg.formats package in your browser

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

ggseg.formats documentation built on July 2, 2026, 5:07 p.m.