tests/testthat/test-espn_cfb_position.R

test_that("ESPN CFB Position Detail", {
  skip_on_cran()

  cols <- c(
    "position_id", "name", "display_name", "abbreviation", "leaf",
    "parent_id", "position_ref"
  )

  x <- espn_cfb_position(position_id = 8)

  if (is.null(x) || !is.data.frame(x) || nrow(x) == 0) {
    skip("No ESPN position data returned at test time")
  }

  expect_in(cols, colnames(x))
  expect_s3_class(x, "data.frame")
})

Try the cfbfastR package in your browser

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

cfbfastR documentation built on Aug. 24, 2026, 5:13 p.m.