A minimum-dependency R interface to the NHL API.
You can install nhlapi from CRAN.
You can also install the latest development version from the master branch on GitHub using the remotes package:
You retrieve the data from the NHL API by calling the functions exported by the nhlapi package. They start with nhl_ so you can easily find them with autocomplete in your favourite editor:

nhl_teams()nhl_teams_rosters()nhl_teams_shedule_next(), nhl_teams_shedule_previous()nhl_teams_stats()nhl_playersnhl_players_seasons()nhl_players_allseasons()nhl_games_content()nhl_games_feed()nhl_games_boxscore()nhl_games_linescore()nhl_tournaments_playoffs()nhl_tournaments_olympics()nhl_tournaments_worldcups()nhl_schedule()nhl_schedule_today()nhl_schedule_seasons()nhl_schedule_date_range()nhl_standings()nhl_divisions()nhl_conferences()nhl_drafts()nhl_seasons()nhl_awards()nhl_venues()nhl_draft_prospects()nhl_md_game_types()nhl_md_game_statuses()nhl_md_play_types()nhl_md_tournament_types()nhl_md_standings_types()nhl_md_stat_types()nhl_md_event_types()Thanks go to Drew Hynes for documenting this so well in https://gitlab.com/dword4/nhlapi/blob/master/stats-api.md
NHL and the NHL Shield are registered trademarks of the National Hockey League. NHL and NHL team marks are the property of the NHL and its teams. © NHL 2020. All Rights Reserved.