Publications by hrbrmstr
Quick Hit: Speeding Up Data Frame Creation
(This is part 2 of n “quick hit” posts, each walking through some approaches to speeding up components of an iterative operation. Go here for part 1). Thanks to the aforementioned previous post, we now have a super fast way of reading individual text files containing HTTP headers from HEAD requests into a character vector: library(Rcpp) vapp...
3083 sym R (4727 sym/8 pcs)
Short & Sweet: {cdcfluview} 0.9.2 Is On Its Way to CRAN Mirrors
The CDC continues to “deliver” in 2020, this time by changing the JSON response of one of the hidden APIs that my {cdcfluview} package wraps. CDC: So helpful! It was a quick fix, and version 0.9.2 passed automated CRAN checks in ~9.42 minutes! the CRAN team! Plus, a special shout-out to Ian-McGovern (GH ID) for triaging the issue even before...
1022 sym 6 img
Apple Silicon + Big Sur + RStudio + R Field Report
It’s been a while since I’ve posted anything R-related and, while this one will be brief, it may be of use to some R folks who have taken the leap into Big Sur and/or Apple Silicon. Stay to the end for an early Christmas ! Big Sur Report As #rstats + #macOS Twitter-folks know (before my permanent read hiatus began), I’ve been on Big Sur sin...
7435 sym 14 img
Updated Apache Drill R JDBC Interface Package {sergeant.caffeinated} With {dbplyr} 2.x Compatibility
While the future of the Apache Drill ecosystem is somewhat in-play (MapR — a major sponsoring org for the project — is kinda dead), I still use it almost daily (on my local home office cluster) to avoid handing over any more money to Amazon than I/we already do. The latest (yet-to-be-released) v1.18.0 has some great improvements, including JS...
3205 sym R (1637 sym/3 pcs) 4 img
Bringing R to Swift on macOS
Over Christmas break I teased some screencaps: A more refined #rstats #swift “SwiftR” example. Simple Image view + some text views, a color picker and a button that runs R-in-Swift code (like {reticulate} does for Python in R) Note no ssd/hd storage round-trip for the plot. Code snippet: https://t.co/fWaHnztUgd pic.twitter.com/y5m1I16tCB �...
2535 sym R (1658 sym/1 pcs) 4 img
Safety Checking Locally Installed Package URLs
I went completely daft this week and broke my months-long Twitter break due to the domestic terror event in my nation’s capitol. I’ll likely be resuming the break starting today. Whilst keeping up with the final descent of the U.S. into a fully failed state, I also noticed that a debate from months ago on CRAN URL checks was still going stron...
2141 sym R (6579 sym/1 pcs)
New SwiftR Chapter Up: Building an R-backed SwiftUI macOS App
Last week I introduced a new bookdown series on how to embed R into a macOS Swift application. The initial chapters focused on core concepts and showed how to build a macOS compiled, binary command line application that uses embedded R for some functionality. This week, a new chapter is up that walks you though how to build a basic SwiftUI applic...
1595 sym 2 img
SwiftR Switcheroo: Calling [Compiled] Swift from R!
I’ve been on a Swift + R bender for a while now, but have been envious of the pure macOS/iOS (et al) folks who get to use Apple’s seriously ++good machine learning libraries, which are even more robust on the new M1 hardware (it’s cool having hardware components dedicated to improving the performance of built models). Sure, it’s pretty st...
4288 sym R (984 sym/7 pcs)
Calling [Compiled] Swift from R: Part 2
The previous post introduced the topic of how to compile Swift code for use in R using a useless, toy example. This one goes a bit further and makes a case for why one might want to do this by showing how to use one of Apple’s machine learning libraries, specifically the Natural Language one, focusing on extracting parts of speech from text. I ...
2768 sym R (3499 sym/12 pcs)
Making It Easier To Experiment With Compiled Swift Code In R
The past two posts have (lightly) introduced how to use compiled Swift code in R, but they’ve involved a bunch of “scary” command line machinations and incantations. One feature of {Rcpp} I’ve always is the cppFunction() (“r-lib” zealots have a similar cpp11::cpp_function()) which lets one experiment with C[++] code in R with as litt...
3856 sym R (3511 sym/4 pcs) 4 img