Miles McBain
@milesmcbain.bsky.social
2.2K followers 670 following 530 posts
Code hacker, number cruncher, #rstats user, board gamer, road racer, plant eater, bass slapper. I like big bikes and I cannot lie. #cargobike Coming to you from AUS / BNE. https://milesmcbain.com
Posts Media Videos Starter Packs
milesmcbain.bsky.social
I got into this habbit of putting test / noodling / debugging code down the bottom of the R file in an anonymous function i.e. function() {}. In both package dev or targets the code is unreachable. Semi regularly I will accidentally commit it. Some collaborators find it disturbing.
Reposted by Miles McBain
njtierney.bsky.social
Hey #rstats friends! 👋

Only one week to go until my "Introduction to R Packages" tutorial at #WOMBAT2025!

This is a gentle introduction to making R packages, going from initial code to `devtools::check()`

Still plenty of spots available :)

Sign up at: wombat2025.numbat.space
milesmcbain.bsky.social
Nah a combination of living in the opposite corner of the earth and in the ‘busy parent’ season of life means I passed it up this year. Will check out this talk when it drops though. And I appreciate the heads up! 👍
milesmcbain.bsky.social
I mean that thing got third party emacs ports…
milesmcbain.bsky.social
The thing is, I feel it’s the {breakerofchains} crowd who are most likely hunt me down if I ever retired the repo.
jhelvy.bsky.social
The GOAT RStudio addin by @milesmcbain.bsky.social
libbyheeren.bsky.social
Jonathan McPherson just mentioned datapasta at the opening keynote of #positconf, so I'm sharing this once again to share the magic, for all those discovering it for the very first time ❤️

#databs #rstats
milesmcbain.bsky.social
Wuuuuut? Okay so now I need to watch this!
Reposted by Miles McBain
mskellymhayes.bsky.social
In my experience, courage is usually the product of love and/or solidarity. When we are deeply invested in each other, we are more likely to take risks that we wouldn't take out of mere principle, or for the sake of people we feel disconnected from. Our alienation mass produces cowardice.
milesmcbain.bsky.social
No! I gave a targets talk at my work a few months back, but not polished to this level.
milesmcbain.bsky.social
Probably easier the less pieces there are in the chain. If you only program in C you might be fine.

For me repeatedly debugging tools when I had allocated the time for work was too much stess.

But I salute those out there on the bleeding edge who find and report all the issues. 🫡
milesmcbain.bsky.social
Haven’t used this distro, but have used a number of Arch wrappers over the years. Clearing the installation hurdle is just the start…

Keeping your tool chain functional if you use the system for any kind of productive work becomes the ongoing time sink.
milesmcbain.bsky.social
It’s actually pretty close to a CRAN like setup. You’re getting recent versions effectively forced on you, but bthere’s a thin layer that stops catastrophic shit from coming down the pipe and rendering your setup unusable.
milesmcbain.bsky.social
I’ve tried a bunch. Running OpenSUSE tumbleweed atm. That’s like seriously uncool. But damned if it doesn’t ‘just work’ in a way that no other rolling distro has.
milesmcbain.bsky.social
Arch is Sys Admin Simulator. Do not install it unless you have hours you can give away to ‘git gud’ via the wiki.
milesmcbain.bsky.social
Same. It’s not the product. It’s the externalities. It’s the grift. It’s the sell out of all the people who talked a talk of caring about making things open for the benefit of all.
Reposted by Miles McBain
coxyjindas.bsky.social
Great video by @ohtheurbanity.bsky.social featuring Brisbane's low cycling mode share. Fun fact: in 2006 Brisbane aimed to more than double cycling from 2% to 5% by 2026.

In 2016 when they reviewed the plan, mode share was...still 2%. What did they do in the 2016-2036 plan?
youtu.be/_DQonhJLKTc?...
The Cycling Potential Hiding in Plain Sight
YouTube video by Oh The Urbanity!
youtu.be
milesmcbain.bsky.social
Yeah that kinda stuff 👍
milesmcbain.bsky.social
Depends on data infrastructure and degree of reproducibility though. Queries / calls might be okay if infrastructure is high quality.
milesmcbain.bsky.social
“Fully reproducible” is s REALLY deep rabbit hole.

Dependencies and inputs need to be controlled. Mechanisms vary.

Lockfile is low effort minimum for dependencies.

Inputs will ideally be files and ideally versioned, as opposed to queries or API calls.
Reposted by Miles McBain
australiainstitute.org.au
Tax breaks for huge, American-style utes cost the Australian government $250 million in 2023.

But it gets worse.

Emissions from passenger cars have fallen since 2005, but that drop was wiped out by the increased use of big utes. #auspol
milesmcbain.bsky.social
I do it with the testthat expect_ family, works great. Only one tool to remember how to use in both package dev and pipeline code.
milesmcbain.bsky.social
Ah this is good 👍