Dave's Notebook
Writing Practice by David Rickmann.
All the Gears and Cogs
This is planned to be a brief note on the things I used to make this website.
I needed to make a website for someone to post their daily writing. It turned out that this daily writing habit was having a lot of benefits for them, so I copied it So, my first instinct was of course, to load up R Studio and start there.
I like R and I like R studio.
I started using R when I was working on rail demand data. A collegue was leaving and had put together some R code to process large data files. They needed someone to take over the project and I tended to get the job of picking up stuff that looked a bit too… code-like for the other engineers. A lot of modellers do all their modelling in Excel and all their reports in Word and never touch anything else. Excel mixes up data and logic and also doesn’t play well with version control. Basically many modellers are more scared of code than they should be. . It turned out that I really liked it. Part of that was that I was dealing with things which were inherently dataframe shaped, and that’s something that R does exceptionally well, but it’s also that the R community is tremendously helpful and nice. It also helps that whenever I run into something I want to do it turns out that Hadley Wickham has already written a package to do what I wanted.
I’d already put together a website for myself as somewhere to write up some of my previous projects and act as a portfolio. This used a package called blogdown to turn R markdown into static websites. So I copied that source code, stripped out most of the bells and some of the whitles and offered that up. This was rejected as being too polished looking for a notepad blog. Fair point really. So inspired by a few other notebook like blogs I used a tufte-css hugo theme.
The advantage of this is that if I want a needlessly elaborate graph, I can include bits of R code very very easily… This is a force directed network graph showing people who have co authored a paper with Vincent Ranwez. I grabbed it from here to use as an example and a test.
Anyway… This all gets sent to github. (A popular hub for software projects using the git version control tool). My github repository is monitored by netlify and whenever I push a new post it grabs the changes, rebuilds the site and redeploys it.
And that’s how it all works.