nhlapi
is a package for querying the NHL Stats API through R. This package is still under development and not all endpoints have been implemented yet.
library(nhlapi)
teams <- get_teams()
player <- get_player("8475149")
game <- get_game_feed("2017020449")
teams$content
player$content
game$content
Installation can be done via devtools.
devtools::install_github("zamorarr/nhlapi")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.