Learn R Programming

horsey (version 1.0.1)

export_games: Export games for a player

Description

Downloads games from /api/games/user/{username} and requests NDJSON. Returns a tibble of commonly-used analysis fields, plus a raw list-column containing each full game object as returned by the API.

Usage

export_games(
  cl,
  username,
  max = 100,
  since = NULL,
  until = NULL,
  perfType = NULL,
  rated = NULL,
  opening = TRUE
)

Value

A tibble with selected metadata columns and a raw list-column.

Arguments

cl

A horsey_client.

username

Lichess username.

max

Maximum number of games to request (default 100).

since

Optional epoch milliseconds (inclusive).

until

Optional epoch milliseconds (exclusive).

perfType

Optional perf filter (e.g., "blitz", "rapid").

rated

Optional logical filter.

opening

If TRUE, ask Lichess to include opening info when available.