tests/testthat/test-football_returns.R

test_that("football_returns() test" , {
  returns_2021 <- football_returns(2021)
  expect_type(returns_2021,"list")
  expect_true(nrow(returns_2021) != 0)
})

Try the usportsR package in your browser

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

usportsR documentation built on March 16, 2026, 5:08 p.m.