Run
aoc_source(day = 1, part = 1)
input = aoc_read(day = 1)
aoc_run(solve_day1_part1(input))
Answer: testing content generation
Elapsed: < 0.01 seconds
#' Title
#'
#' @param input
#' Character vector of lines read from input.
#'
#' @return
#' Answer
solve_day1_part1 <- function(input) {
if (2 * 3 == 6) {
"testing content generation"
}
}
aoc_source(day = 1, part = 1)
input = aoc_read(day = 1)
aoc_run(solve_day1_part1(input))
Answer: testing content generation
Elapsed: < 0.01 seconds
aoc_source(day = 1, part = 2)
input = aoc_read(day = 1)
aoc_run(solve_day1_part2(input))
Answer: 49998647
Elapsed: 1.47 seconds
#' Title
#'
#' @param x What if talk about this parameter really long, how does this look in
#' the code chunk?
#'
#' @return
#' @export
#'
#' @examples
solve_day2_part1 <- function(x) {
"blah"
}
aoc_source(day = 2, part = 1)
input = aoc_read(day = 2)
aoc_run(solve_day2_part1(input))
Answer: blah
Elapsed: < 0.01 seconds