Get the URL from the Advent of Code website for the puzzle and the puzzle
input for a given day and year.
Usage
aoc_url(day, year = NULL, browse = FALSE)
aoc_url_input(day, year = NULL, browse = FALSE)
Arguments
- day
An integer between 1 and 25
- year
An integer representing the year, from 2015 to the current year. Defaults to the current year.
- browse
logical - should the URL be opened in the browser?
Value
A character string with the URL
Examples
aoc_url(1, 2022)
#> [1] "https://adventofcode.com/2022/day/1"
aoc_url_input(1, 2022)
#> [1] "https://adventofcode.com/2022/day/1/input"