tests/testthat/test-metrics_team_consistency.R

# 
# cols <- c(
#   "Team", "Con_R", "Con_RA", "Con_R_Ptile", "Con_RA_Ptile"
# )
# 
# test_that("Team Consistency", {
#   skip_on_cran()
#   
#   x <- team_consistency(year=2015)
#   
#   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.