5 Tips for Using pins with R

It’s no secret that I’m a big fan of the pins package for R (and now there’s Python pins too!). In this post, we’ll take a look at my top 5 best practice tips for using pins effectively. Finally, we have a bonus tip on dubugging problems using pins with RStudio Connect. 1. Use a good title A good title is an essential part of discovery for your pins. It should be short, but informative.

Getting started with logging in R

TL;DR logging is an extremely useful tool for understanding a running (and potentially failing!) application and an essential element of running any code in production. Adding logging to your long running script, shiny app or plumber API is simple and can pay off enormously when things go wrong or when you want someone else to look after your code for you. Log…. Rolls down stairs, Alone or in pairs,

Running a shiny app in a docker container

I recently went looking for a tutorial on hosting a shiny app inside a docker container for a friend. There are a loads of tutorials available, but this one from Juan Orduz is my favourite. It’s short, to the point, and covers exactly what you need to get started at the perfect level of detail. It’s a couple of years old now though and there are a few ways we can tweak it to make it a little more robust.

Thinking about your career

The three key facets of any career are hopefully pretty self explanatory: Things you’re good at Things you like doing Things you can get paid for If you can find a career that exists at the intersection of all three I think you’ll be pretty happy. Life’s rarely that simple though, so let’s take a look at the two-set intersections to see where a career can get more nuanced.

Product maturity curve in R

I’ve been thinking a lot lately about product maturity and how it applies to open-source projects. The product maturity curve shown above is often used in commercial product discussions to help people think about the product lifecycle. To be honest, I have some pretty strong misgivings about it, but it can be helpful sometimes and I was thinking about recreating it in R (as is my way) and so here’s the code to create the plot above.

Using the Raspberry Pi Pico Python SDK with a Mac

(AKA “Installating minicom on a Mac”) If you’ve read the official documentation for the Pico Python SDK, you’ll have seen that in order to connect your Mac to the python REPL running on the Pico you need a serial interface program. The docs suggest the aptly named “Serial” which looks great, but is not cheap. Being a frugal hacker, you might prefer to use an open source tool instead. Well, help is at hand!

Create a simple web server with plumber

The plumber package is great for creating APIs in R, but it has a coupe of lesser known tricks up it’s sleeve and I wanted to talk about one of those today. In the modern web-based world, you sometimes just need a simple web server to serve HTML pages or other content across the network. Fortunately, plumber can help. The goal here is to take a directory of content, such as HTML, CSS and javascript and create a web server that will serve that directory of content to users on the same network.

Updates to Awesome-Blogdown.com

Big (but mostly invisible) changes to awesome-blogdown.com which now uses GitHub Actions! A couple of years ago I wrote about how awesome-blogdown.com works. Since then, it’s been ticking along nicely with very little intervention from me, which is exactly what I was aiming for. Life goes on though, and over time things change. In particular for this story, the changes relate to all the automation tools I was using behind the scenes.

Advice for managers new to remote working

I originally posted this to twitter, but figured a more permanent home might be useful. A quick post on managing remote teams for anyone new to it amid the fast-evolving Coronavirus/Covid-19 situation: Be intentional. You can’t rely on ad-hoc office chitchat to stay on top things. Have regular check-ins and catch-ups with your team. Cameras on. It feels really weird at first, but being able to see people helps to maintain social bonds and provides useful clues for when people are about to speak and so on.

Add the Current Git Branch to Your Bash Prompt

I’ve been asked a few times recently about the prompt I have in my terminal. It looks like this… The people who’ve asked me about it have wondered what it shows, how it was done and how they can do it for themselves, so I thought I’d write it up for anyone that might be interested. What does it show? Each of these things automatically updates (as required) each time you run a command in the terminal.