Skip to content

Josh-Cena/aoc2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2023

Language: R (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

About

Proof that I can write crappy R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages