←
James Laird-Smith138 posts
James Laird-Smith avatar

James Laird-Smith

@JLS_DataScience

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

◷ Joined February 2018▧ 27 Photos and videos
James Laird-Smith avatar
James Laird-Smith@JLS_DataScience·11 Aug 2024

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

Post attachment
James Laird-Smith avatar
James Laird-Smith@JLS_DataScience·30 Jan 2024

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

James Laird-Smith avatar
James Laird-Smith@JLS_DataScience·4 Aug 2023

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!

James Laird-Smith avatar
James Laird-Smith@JLS_DataScience·4 Aug 2023

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.

Post attachment
James Laird-Smith avatar
James Laird-Smith@JLS_DataScience·30 Jun 2023

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!

Post attachment