tests/testthat/test-get_subject.R

test_that("`get_subject()` returns tibble with expected colnames", {
  skip_if_offline()
  result <- get_subject(itemsPerPage = 1) |>
    suppressWarnings()

  expect_s3_class(result, "tbl_df")

  expect_identical(
    names(result),
    c("hardyScale", "ageBracket", "subjectId", "sex", "datasetId")
  )
})

Try the gtexr package in your browser

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

gtexr documentation built on Aug. 21, 2025, 5:36 p.m.