Data Scientist at the @BankofEngland. Previously at the @FinancialTimes and University of Cape Town. 🩴🇿🇦

Joined February 2018
27 Photos and videos
Can anyone explain why Kamala Harris hasn't download my R package from CRAN yet? I understand she's on the campaign trail, but all she needs is an internet connection. Technical difficulties? #rstats
195
#rstats friends, I have a question: given that I have some built R package on disk, what is the blessed/easiest way can I (programmatically) check if it's in source or binary format? Beyond just checking the file extension.
1
1
344
New categorical colour scheme just dropped 🎤🤩 #rstats
12 Dec 2023
Replying to @mbostock
The new observable10 categorical color scheme by @pettiross features a more saturated vibe to help charts pop. And it looks great in dark mode. 😎
273
James Laird-Smith retweeted
📢 November Webinar 📢 We are very excited to announce that the incredible James Laird-Smith will be presenting a ‘Customising your R Experience’ webinar on Wednesday 29th November 2023! Click here to register: nhsrcommunity.com/events/nov… #NHSr #RStats #DataScience #NHSRCommunity

2
3
928
This Wednesday (Nov 29th) I'm excited to be giving a webinar to the NHS-R Community on "Customising your R experience"! It's going to be at 1pm GMT. Registration link is here, but it will also be recorded. #rstats nhsrcommunity.com/events/nov…

93
At 5pm (BST) on Thursday I'm going to be a guest on @posit_pbc's Data Science Hangout speaking about the work I do for the @bankofengland and supporting its 1000 R users. #rstats There's no need to register, you can join the stream using this link: pos.it/dsh
2
6
1,873
Is it wrong that, when the NYT crossword clue is "something to stub", my first thought is 'function' and not 'toe'? 😅 #rstats
243
I've been doing a bunch of #rstats package 📦 install testing this week. And the withr package (as usual!) just makes the experience so much easier and cleaner. 🤩👇
1
182
Here's an example where I create a function to install a package in a temporary directory, with temporary libpaths and with temporary compiler flags. And it's just so straightforward! I don't need to worry about global state because I know withr will take care of it for me.
1
91
There's a lot of be said for removing cognitive overhead for developers. By using withr I'm saved the decision of where to put temporary directories or remembering to reset compiler flags. A huge thank you to the authors for this very sleek and amazingly useful package!
55
After a hard day of wrangling data from APIs, I'm very seriously considering naming my first child `tidyr::unnest_wider()`. I mean, just look how easy it makes converting highly nested JSON into a tidy data frame?! 🤩 Friday #rstats fun!
3
211
Have you ever wanted to generate random but readable strings? Like for files or folders? Today's Friday #rstats fun is thanks to @rgfitzjohn for the ids package📦 and its wonderful `adjective_animal()` 😻function.
3
7
1,498
Today's Friday #rstats fun: I discovered the (experimental) `tree()` function in the lobstr package for the pretty-printing of lists. So much cleaner than `str()`! 😍🗒️ Thanks @NicholasStrayer!
6
33
2,463
R: What if everything was a vector? #rstats
my old shit posting made it to reddit, it get posted multiple times every year lmao reddit.com/r/ProgrammerHumor…
2
5
Friends who use #rstats: if somebody was interested in making Quarto available from within one's organisation (there's a whole process), what would be an appropriate version to start out with? @fly_upside_down @dragonstyle @scheidegger @chrisderv
1
1
#rstats mid-week fun. I was trying to edit my .Rprofile to execute some code, but only when I happen to be working in RStudio. And it turns out finding a logical test for this isn't that easy. 🧵
1
1
`Sys.getenv("RSTUDIO")` doesn't work either, because it gets set even when you open R from the terminal pane in RStudio.
1
So if you are looking to set some code to trigger in your .Rprofile, but only if you are in the R world's favourite IDE, you can do so most reliably with `commandArgs()[[1L]] == "RStudio"`.
2
2