Competitions of a competition type from liguemagnus.com
(get_competition_by_type): one row per season, with the competition_id
the other routes key a season by. Coverage starts in 2020-21.
Value
A tibble (return_parsed = TRUE), else the raw envelope list:
| col_name | type | description |
| competition_id | integer | Ligue Magnus competition id (integer); one per season, the key get_phases and get_rencontres take (1 = 2020-21 ... 240 = 2026-27). |
| season | integer | Season by its END year (2027 = 2026-27), the federation's saison field. |
| competition | character | Competition name as published (sponsor name included, e.g., "Synerglace Ligue Magnus"). |
| competition_type_id | integer | Competition type id: 1 = Ligue Magnus, 2 = Division 1. |
| competition_type_code | character | Competition type code (NA for the Ligue Magnus). |
| competition_type | character | Competition type label (e.g., "Ligue Magnus"). |
| external_url | character | External site linked from the competition (streaming partner). |
| published | logical | Whether the competition is published on the league site. |
Errors
fastRhockey_no_data: success = false with "Aucune donnee disponible", an
empty data stub, zero rows, a season outside 2020-21 onwards, an unknown or
unplayed game. fastRhockey_asset_fetch: a failed fetch, success = false
with any other message, rows outside the requested scope, a partial schedule
page, or a game page without its embedded game sheet. fastRhockey_bad_request:
HTTP 400/422, a validation error naming a rejected parameter, or an invalid
argument.
See also
Other Ligue Magnus Functions:
magnus_game(),
magnus_lineups(),
magnus_pbp(),
magnus_phases(),
magnus_round_games(),
magnus_rounds(),
magnus_schedule(),
magnus_shootout(),
magnus_standings(),
magnus_teams()
Examples
# \donttest{
try(magnus_competitions())
#> Error in .euro_check_status(resp) :
#> liguemagnus.com/wp-admin/admin-ajax.php answered HTTP 403:
#> <html><body><h1>403 Forbidden</h1> Request forbidden by administrative rules.
#> Interdiction d'acceder a cette ressource </body></html>
# }
