Obtains the data from the wanted year and day and transform the data into a tibble.

Reading the response into a tibble makes the following assumptions using readr::read_delim();

  • delim = "\n"

  • skip_empty_rows = FALSE

  • show_col_types = FALSE

Responses will be cached to reduce the number of requests sent to the Advent of Code website.

aoc_get_data_as_tibble(year, day)

Arguments

year

Numeric. Year of the challenge.

day

Numeric. Day of the challenge.

Value

Tibble containing data from the wanted year and day.

See also

Other HTTP Request functions: aoc_get_response()

Examples

if (FALSE) {
d <- aoc_get_data_as_tibble(2022, 1)
}