tests/testthat/test-load_umpire_ids.R

cols <- c(
  "id", "position", "name", "game_pk", "game_date"
)

test_that("Load Umpire IDs", {
  skip_on_cran()
  
  x <-load_umpire_ids()
  
  expect_equal(colnames(x), cols)
  expect_s3_class(x, "data.frame")
})

Try the baseballr package in your browser

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

baseballr documentation built on April 1, 2023, 12:12 a.m.