test_that("NBA Player Career by College Rollup", { skip_on_cran() skip_on_ci() skip_nba_stats_test() x <- nba_playercareerbycollegerollup(per_mode = "Totals") cols_x1 <- c( "REGION", "SEED", "COLLEGE", "PLAYERS", "GP", "MIN", "FGM", "FGA", "FG_PCT", "FG3M", "FG3A", "FG3_PCT", "FTM", "FTA", "FT_PCT", "OREB", "DREB", "REB", "AST", "STL", "BLK", "TOV", "PF", "PTS" ) cols_x2 <- c( "REGION", "SEED", "COLLEGE", "PLAYERS", "GP", "MIN", "FGM", "FGA", "FG_PCT", "FG3M", "FG3A", "FG3_PCT", "FTM", "FTA", "FT_PCT", "OREB", "DREB", "REB", "AST", "STL", "BLK", "TOV", "PF", "PTS" ) cols_x3 <- c( "REGION", "SEED", "COLLEGE", "PLAYERS", "GP", "MIN", "FGM", "FGA", "FG_PCT", "FG3M", "FG3A", "FG3_PCT", "FTM", "FTA", "FT_PCT", "OREB", "DREB", "REB", "AST", "STL", "BLK", "TOV", "PF", "PTS" ) cols_x4 <- c( "REGION", "SEED", "COLLEGE", "PLAYERS", "GP", "MIN", "FGM", "FGA", "FG_PCT", "FG3M", "FG3A", "FG3_PCT", "FTM", "FTA", "FT_PCT", "OREB", "DREB", "REB", "AST", "STL", "BLK", "TOV", "PF", "PTS" ) expect_in(sort(cols_x1), sort(colnames(x[[1]]))) expect_s3_class(x[[1]], "data.frame") expect_in(sort(cols_x2), sort(colnames(x[[2]]))) expect_s3_class(x[[2]], "data.frame") expect_in(sort(cols_x3), sort(colnames(x[[3]]))) expect_s3_class(x[[3]], "data.frame") expect_in(sort(cols_x4), sort(colnames(x[[4]]))) expect_s3_class(x[[4]], "data.frame") Sys.sleep(3) })