Language: (4.3.2)
Package Manager: R itself, just run
installer.R!
This repo uses my standard AoC setup. Inputs are stored as inputs/day{n}/{name}.txt. By default name is real (the real question). To run a specific day's solution, use the following command:
Rscript src/main.r {day} {part} {name}For example, to run the solution for day 1, part 2 with the example input:
Rscript src/main.r 1 2 ex(And make sure that inputs/day1/ex.txt exists.)
Note: to successfully install gmp amd DiagrammeR, I had to do the following:
cat <<EOF > ~/.R/Makevars
CPPFLAGS += -I/opt/homebrew/opt/gmp/include
LDFLAGS += -L/opt/homebrew/opt/gmp/lib
CPPFLAGS += -I/opt/homebrew/opt/icu4c/include
LDFLAGS += -L/opt/homebrew/opt/icu4c/lib
CPPFLAGS += -I/opt/homebrew/include
LDFLAGS += -L/opt/homebrew/lib -Wl,-rpath,/opt/homebrew/lib
FC = /opt/homebrew/Cellar/gcc/15.2.0/bin/gfortran
F77 = /opt/homebrew/Cellar/gcc/15.2.0/bin/gfortran
FLIBS = -L/opt/homebrew/Cellar/gcc/15.2.0/lib/gcc/15
EOF