Skip to contents

Interact with Advent of Code website

aoc_url() aoc_url_input()
Get URLs from the Advent of Code website
aoc_get_input()
Get and save the puzzle input

Create or delete files on your Advent of Code Quarto website

aoc_new_year()
Create directory and files for a new year
aoc_new_day() aoc_new_post()
Set up a new day
aoc_new_intro()
Create an introduction post
aoc_new_conclusion()
Create a conclusion post
aoc_get_input()
Get and save the puzzle input
aoc_delete_day() aoc_delete_year()
Delete the directory for a day or year
aoc_delete_intro()
Delete an introduction post
aoc_delete_conclusion()
Delete a conclusion post

Read in puzzle input stored in your Quarto website

aoc_input_data_frame()
Read puzzle input as a data frame
aoc_input_matrix()
Read puzzle input as a matrix
aoc_input_vector()
Read puzzle input as a vector

Helpers for wrangling data

lines_to_matrix()
Convert vectors to a matrix
split_at_blanks()
Split input into groups

Helper functions for working with strings

extract_numbers()
Extract all numbers from a string

Maths helper functions

GCD() LCM()
Greatest Common Divisor (GCD) and Least Common Multiple (LCM)