Miles McBain's Avatar

Miles McBain

@milesmcbain.bsky.social

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

2,188 Followers  |  669 Following  |  526 Posts  |  Joined: 01.11.2024  |  2.3232

Latest posts by milesmcbain.bsky.social on Bluesky

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.

25.09.2025 00:22 โ€” ๐Ÿ‘ 4    ๐Ÿ” 1    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

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

19.09.2025 05:50 โ€” ๐Ÿ‘ 13    ๐Ÿ” 8    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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! ๐Ÿ‘

19.09.2025 00:12 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I mean that thing got third party emacs portsโ€ฆ

18.09.2025 03:40 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

The thing is, I feel itโ€™s the {breakerofchains} crowd who are most likely hunt me down if I ever retired the repo.

18.09.2025 03:38 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Wuuuuut? Okay so now I need to watch this!

18.09.2025 03:29 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

12.09.2025 04:23 โ€” ๐Ÿ‘ 1156    ๐Ÿ” 358    ๐Ÿ’ฌ 18    ๐Ÿ“Œ 16

No! I gave a targets talk at my work a few months back, but not polished to this level.

08.09.2025 23:30 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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. ๐Ÿซก

29.08.2025 23:34 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

29.08.2025 23:34 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

29.08.2025 10:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

29.08.2025 10:39 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0

Arch is Sys Admin Simulator. Do not install it unless you have hours you can give away to โ€˜git gudโ€™ via the wiki.

29.08.2025 10:37 โ€” ๐Ÿ‘ 6    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

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.

29.08.2025 07:47 โ€” ๐Ÿ‘ 5    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

What?! No!

28.08.2025 00:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
The Cycling Potential Hiding in Plain Sight
YouTube video by Oh The Urbanity! The Cycling Potential Hiding in Plain Sight

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?...

27.08.2025 21:52 โ€” ๐Ÿ‘ 22    ๐Ÿ” 3    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Preview
a baby is sitting in a car seat with a funny face . ALT: a baby is sitting in a car seat with a funny face .
27.08.2025 02:51 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Yeah that kinda stuff ๐Ÿ‘

26.08.2025 02:28 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Depends on data infrastructure and degree of reproducibility though. Queries / calls might be okay if infrastructure is high quality.

26.08.2025 02:07 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

โ€œ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.

26.08.2025 02:06 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Post image

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

25.08.2025 06:05 โ€” ๐Ÿ‘ 320    ๐Ÿ” 182    ๐Ÿ’ฌ 27    ๐Ÿ“Œ 29

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.

24.08.2025 00:13 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Ah this is good ๐Ÿ‘

22.08.2025 23:13 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

i need politicians to be as mad at housing prices as they are about cracker barrel's new logo

22.08.2025 19:31 โ€” ๐Ÿ‘ 20276    ๐Ÿ” 3031    ๐Ÿ’ฌ 269    ๐Ÿ“Œ 111
Preview
a man wearing a hat and a shirt that says i don t know anymore ALT: a man wearing a hat and a shirt that says i don t know anymore

Literally 15min ago

โ€œBut Dad what do you actually do for a job?โ€

22.08.2025 11:20 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

๐Ÿ‘๐Ÿ‘๐Ÿ‘

22.08.2025 11:16 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Like apps just donโ€™t work like that any more. Itโ€™s a throw back.

22.08.2025 04:45 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Libby is fucking Rad

22.08.2025 04:43 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

I have surveyed vast wastelands of irreproducible, unverifiable, self-referential Excel pandemonium.

I can only conclude the safe amount of Excel to use is none. Ever.

It is a tolerable data transport format if you have to deliver data inside the MS walled garden. Nothing more.

22.08.2025 01:33 โ€” ๐Ÿ‘ 9    ๐Ÿ” 2    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@milesmcbain is following 20 prominent accounts