adventofcode
My attempt to Advent Of Code as an R package. Each solution is stored as a function, and solution is given as an example for the function. Unit tests are also provided :)
Installation
You can install the released version of adventofcode from github with:
install.packages("adventofcode")
Example
This is a basic example which shows you how to solve problem from day 1:
library(adventofcode)
sum(sapply(day_1, fuel_requirement))
#> [1] 5055835