inst/templates/solution.R

library(adventofcode18)
x <- readLines("./inst/input{{{ dd_number }}}.txt")

p1 <- f{{{ dd_number }}}a(x)
p2 <- f{{{ dd_number }}}b(x)

stopifnot(p1 == aoc18_solutions$day{{{ dd_number }}}a)
stopifnot(p2 == aoc18_solutions$day{{{ dd_number }}}b)
tjmahr/adventofcode18 documentation built on May 24, 2019, 4:10 p.m.