Smiling and posing for a picture at the BBC Reporting Scotland studio behind the presenters' desk
I enjoyed this tour at work
Smiling and posing for a picture at the BBC Reporting Scotland studio behind the presenters' desk
I enjoyed this tour at work
Rebase Another Day π
Oh for sure. Not mutually exclusive imo.
It's a never ending lesson in humility. Just when I think I've got it...I don't.
I think by visualise you mean something fancier than a flowchart? Anyway I need to mention that library(consort) works well if it is a flowchart that you need.
Can't wait to try this out. Always an Alpha tester ππ»
Fixed
Now fixed
Now maybe?
Fixed...
(True story)
Distressing
Aha! This is why it had stopped working for me. Or rather was just stuck on "thinking" forever. Now logged out and back in again and working again. Thanks very much for sharing and the video!
I was really keen to use IntelliJ IDEA for Python as it looks good and I had a licence anyway (DataGrip is awesome). But the PyCharm data explorer is just shocking. So I kept using Positron to view data, then stubbornly writing code in IntelliJ. Eventually came to my senses and now only use Positron
Nope, any number of loops spared is a win ππ»
I'm working on Day 10 and have somehow put four maps inside two nested for loops π€ͺ sorry not sorry
I'm revisiting Part II of this one and looking for ideas. Only just saw that you put for loops inside mutate?!? Revolutionary.
Neat as always ππ»
Code from https://github.com/riinupius/advent2025/blob/main/day09/movie-theatre.R
#AdventOfCode Day 09 both parts #rstats
I used plotly to guide my search. Sue me π
Also as.matrix() and dist()
I just solved it too, team igraph ππ»
MVP: is_connected(g) #igraph #rstats #AdventOfCode Day 08
Code from https://github.com/riinupius/advent2025/blob/main/day08/playground.R
kmeans in plotly
igraph plot
#AdventOfCode Day 08 - both parts using igraph! #rstats
igraph is superspeedy. pivot_wider() is slow, which to be fair creates 1k columns so that I can get the pairings. Will be a better way, but I was keen to get to igraph asap.
First for loop this year π (but I failed Day 03 and skipped Day 04).
All simple paths and length
My original solution now solves Part II for Test data π
1.25 stars in total I award myself for Day 07 π€©
Distances function instead of all simple paths
Fixed it!!! With just distances() instead of all simple paths. I tried this earlier too only for the splitters in the last low. Running it on all splitters was the trick π
Now on to Part II, which surely requires all paths and therefore canβt be done with my love of graphs? #rstats
No I donβt need every single path, but all_shortest_paths() to final row isnβt sufficient as there are some paths to splitters that arenβt shortest. Although maybe if checked shortest paths to all splitters that would work π€
Do I even want the number of paths? Is that for Part II?
Here for all the tips! (I donβt check Bluesky until Iβve had a good go on my own so by the time Iβm here Iβm happy to see and hear everything π)
Thank you! Might rewrite it with a matrix if have time but thing is I love igraph so much that if anything smells even remotely graphy thatβs what Iβll do. It does work for shortest paths, just that some of the splits are not the shortest possible way for a ray to get down so need all simple paths.
Ah good shout and I have used memoise happily in the past. Not sure it would work with my solution here as itβs a single igraph function call that gives me all the answers at once.
Code from https://github.com/riinupius/advent2025/blob/main/day07/laboratories.R
#AdventOfCode Day 07 Part I & Test data only
Can I please get 0.25 β for solving it for the test input, but running out of memory for the real input π
Wow really well done. So succinct. Rotating crossed my mind but decided to go with the devil I know. But would have been much more elegant to rotate as I can see from your solution.
I only use fwf for AoC. And I've only ever used it with equal width splits in the past - so with the help of rep(). First time benefitting from the fact that splits can be different width and feeling like a superhero π€©
This pipeline is on fire β¨οΈ
I agree lovely one today. I solved without loops. Have a look at my post.