Skip to contents

Get ESPN NHL Talent Picks (core-v2)

Usage

espn_nhl_talentpicks(...)

Arguments

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per talent pick reference, or an empty tibble when the endpoint is unavailable. Note: The NHL talent picks endpoint (core_v2/talentpicks) currently returns count=0

  • an empty tibble is returned gracefully:

col_nametypesdescription
refcharacter$ref URL for the talent pick object.
pick_idcharacterESPN pick id parsed from the $ref URL.
countintegerTotal talent picks in the collection (typically 0).
page_countintegerTotal pages in the collection.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  # NOTE: Returns empty tibble for NHL (ESPN does not populate this endpoint)
  try(espn_nhl_talentpicks())
#> ! ESPN NHL talentpicks endpoint returned no items (count=0 is normal for NHL).
#> data frame with 0 columns and 0 rows
# }