Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bref_players_stats() not working prior to 2016-17 #128

Open
pddiii opened this issue Nov 4, 2023 · 0 comments
Open

bref_players_stats() not working prior to 2016-17 #128

pddiii opened this issue Nov 4, 2023 · 0 comments

Comments

@pddiii
Copy link

pddiii commented Nov 4, 2023

I tried running the following code and got a ridiculous amount of errors and warnings. I cannot pull data from any years prior to the 2016-17 season for some reason, and I'm not sure what the problem is

> bref_players_stats(seasons = 2001:2005)
Error in `mutate()`:
ℹ In argument: `yearSeason = slugSeason %>% substr(1, 4) %>% as.numeric() + 1`.
Caused by error in `substr()`:
! object 'slugSeason' not found
Run `rlang::last_trace()` to see where the error occurred.
Warning messages:
1: In for (t in seq_along(app$themes)) { :
  closing unused connection 13 (http://www.basketball-reference.com/leagues/NBA_2005_totals.html)
2: In for (t in seq_along(app$themes)) { :
  closing unused connection 12 (http://www.basketball-reference.com/leagues/NBA_2004_totals.html)
3: In for (t in seq_along(app$themes)) { :
  closing unused connection 10 (http://www.basketball-reference.com/leagues/NBA_2003_totals.html)
4: In for (t in seq_along(app$themes)) { :
  closing unused connection 9 (http://www.basketball-reference.com/leagues/NBA_2002_totals.html)
5: In for (t in seq_along(app$themes)) { :
  closing unused connection 8 (http://www.basketball-reference.com/leagues/NBA_2001_totals.html)
6: In for (t in seq_along(app$themes)) { :
  closing unused connection 7 (http://www.basketball-reference.com/leagues/NBA_2005_advanced.html)
7: In for (t in seq_along(app$themes)) { :
  closing unused connection 6 (http://www.basketball-reference.com/leagues/NBA_2004_advanced.html)
8: In for (t in seq_along(app$themes)) { :
  closing unused connection 5 (http://www.basketball-reference.com/leagues/NBA_2003_advanced.html)
9: In for (t in seq_along(app$themes)) { :
  closing unused connection 4 (http://www.basketball-reference.com/leagues/NBA_2002_advanced.html)
10: In for (t in seq_along(app$themes)) { :
  closing unused connection 3 (http://www.basketball-reference.com/leagues/NBA_2001_advanced.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant