Hey #rstats I recommend giving ‘The Social Dilemma’ on Netflix a watch.

Right now I’m reflecting on how much we are using Twitter to connect on R topics versus how much Twitter is using that pretext as an excuse to jack us in to the money printing machine. 🤔

Me: thingie.map((x) => x.thing.thingo) JS: Yeaaahhh boi Inline lambda. Nice one! Me: thingie.map((x) => {x.thing.thingo}) JS: NOPE. I WILL NEVER. HOW COULD YOU POSSIBLY?! GET OUT.

Book week is just the prisoner’s dilemma recast where the snitches are parents who roll out legit costumes. CHANGE MY MIND.

Kid 1 wants to go as ‘The Onceler in his lerkim’ to book week tomorrow. Challenge accepted my dude! 😂😂😂

Look at your console, now back at me, the output is on the clipboard, look again, now it’s on my page, now it’s in my code, THE OUTPUT IS NOW DIAMONDS…

clipr::write_last_clip() is a handy little #rstats fn that can save mousing around in the console.

‘GitHub pull request’ adds a PR and Issue workflow to VSCode. You can make PR comments, code review comments, and execute a merge from within VSCode itself. github.com/microsoft… 🤩

Birthdays

Birthday@25:

  • sleep in till 10
  • play new videogames (present to self)
  • get sloshed on coronas in the driveway
  • memory corrupt

Birthday@35

  • sleep in till 6:30
  • change shitty nappies
  • unclog washing machine filter
  • go on trail run (present to self)
  • afternoon tea with kids + extended fam
  • quiet scotch paired with solving N-Queens in Scheme

Remember when Twitter inexplicably started hiding links to people’s blogs and refused to enter into any correspondence about it? mobile.twitter.com/MilesMcBa…

Your followers aren’t yours. This is their house. You just live here.

How I got utteranc.es working on my rmarkdown distill blog

What is utteranc.es?

I frist saw these on Nick Tierney’s site.

The premise: What if your blog comment threads were just GitHub issue threads on your blog source repo? What if they were syncronised between Github and the footer of the your blog posts? Neat idea hey? You keep control of your data (relatively speaking) and there’s one less site to data mine and track your readers - yes this is a thing in Disqus. Booouuurrrnnns.

How did I get it working?

I didn’t. I fought and fought for some hours with the grid CSS in the Distill template and no matter what I tried my comments iframe always had 0 height. Then I had a big whinge to my colleague Anthony North who defied the grid using a html include with a javascipt payload that injects the Utterances iframe into the end of the article. Very hacky and very cool.

Here’s the HTML file which shouldn’t be too difficult to adapt to your own distill site if you have one.

You need to refer to it in your _site.yaml like:

output:
  distill::distill_article:
    css: mmstyle.css
    includes:
      in_header: utterances.html

Recover is the apex R debugging method.

I just debugged a ‘non-numeric argument error’ being thrown by this beastie in under 5 minutes with #rstats’ options(error = recover).

A strength of recover over other methods for stuff like this is that all 4(!) loop indices will be set to the values they were on failure. Chef’s kiss

IMHO, contrary to Jenny Bryan’s ranking in her incredible object of type closure is not subsettable talk, this makes recover the apex R debugging method.

Error turned about to be from line 12 due to sticky sf geometry btw. 🥳

edit: I accidentally wrote recover = TRUE when I first posted this, a typo I often make due to wishful thinking perhaps.