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

process.single.game failed #2

Open
Btibert3 opened this issue Dec 20, 2015 · 3 comments
Open

process.single.game failed #2

Btibert3 opened this issue Dec 20, 2015 · 3 comments

Comments

@Btibert3
Copy link

The code below failed, and while I am sure its something that is on my end, I am not sure why.

options(stringsAsFactors = F)

## load the libraries
library(nhlscrapr)

## bruins pens game
GID <- "2015020477"
SEASON <- "20152016"
process.single.game(season=SEASON, gcode=GID, override.download = TRUE)

The file that I am interested in is located here

The error is

Downloading files for game 20152016 2015020477
Pausing: 20
NULL
Warning message:
In download.single.game(season, gcode, rdata.folder, ...) :
  Could not recover x-y coordinates.
@Btibert3
Copy link
Author

I also attempted GID <- 020477

@Btibert3
Copy link
Author

Not sure if these are related, but if the x-y error indicates that the PBP JSON is missing, I was able to leverage it in my Shiny app. https://github.com/Btibert3/nhl-shiny/

image

@ghost
Copy link

ghost commented Aug 17, 2016

GID should be 20477

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