aoc_get: Get puzzle for day

View source: R/aoc_get.R

aoc_getR Documentation

Get puzzle for day

Description

Requires AOC_COOKIE environment variable to be set. Downloads and caches puzzle inputs onto your machine.

Usage

aoc_get(
  day,
  year = format(Sys.Date(), "%Y"),
  path = here::here(),
  overwrite = FALSE,
  open = Sys.getenv("AOC_OPEN", unset = interactive())
)

Arguments

day

the day of the puzzle

year

year of puzzle, defaults to current year

path

path to copy template to, defaults to subfolders of current directory

overwrite

overwrite existing file, default to interactive()

Value

Returns the timestamp, in case you're keen on timing your results.


tanho63/aoc.elf documentation built on Jan. 30, 2024, 1:50 p.m.