Skip to contents

Create an introduction post with relative path ./YYYY/day/introduction (where YYYY is the value of year) by copying the template at ./_templates/YYYY-intro and substituting YYYY for the value of year, both in the new file name and in the file itself.

Usage

aoc_new_intro(year = NULL)

Arguments

year

An integer representing the year, from 2015 to the current year. Defaults to the current year.

Value

The path to the introduction post (invisibly)

Examples

if (FALSE) aoc_new_intro(2022)