tests/testthat/test-espn_wnba_standings.R

cols <- c(
  "team_id","team","playoffseed","wins","losses",
  "winpercent","gamesbehind","avgpointsfor",
  "avgpointsagainst","differential","streak",
  "divisionwinpercent","leaguewinpercent","leaguestandings",
  "home","road","vsdiv","vsconf","lasttengames"
)

test_that("ESPN - WNBA Standings", {
  skip_on_cran()
  x <- espn_wnba_standings(year = 2021)
  expect_true(all(cols%in%colnames(x)))
  expect_s3_class(x, "data.frame")
})

Try the wehoop package in your browser

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

wehoop documentation built on Nov. 26, 2023, 1:08 a.m.