Category: R
Everything filed under R.
Quick Hit: Scraping javascript-"enabled" Sites with {htmlunit}
I've mentioned {htmlunit} in passing before, but did not put any code in the blog post. Since I just updated {htmlunitjars} to the latest and greatest version, now might be a good time to do a quick demo of…
Lost In [SQL] Translation: Charting d[b]plyr Mapped SQL Function Support Across All Backends
Like more posts than I care to admit, this one starts innocently enough with a tweet by…
A Limited-but-Functional Couchbase Free Text Search & Retrieval Un-package; or, "How I Abused Couchbase & R to Perform Bulk IP Whois Full-text Searches" (a Cobbler's Tale)
Researching "the internet" (i.e. $DAYJOB) means having to deal with a ton of "unique" (I'm being kind) data formats. This is ultimately a tale of how I performed full-text searches across one of…
Wicked Fast, Accurate Quantiles Using ‘t-Digests’ in R with the {tdigest} Package
@teddunning recently updated the t-Digest algorithm he created back in 2013. What is this "t-digest"? Fundamentally, it is a probabilistic data structure for estimating any percentile of distributed/streaming data. Ted explains it quite…
Rome Was Not Built In A Day But widgetcard Was!
I saw a second post on turning htmlwidgets into interactive Twitter Player cards and felt somewhat compelled to make creating said entities a bit easier so posited the…
Assumptions Matter More Than Dependencies
There's been alot of talk about "dependencies" in the R universe of late. This is not really a post about that but more of a "really, don't do this" if you decide you want to poke the dependency bear by trying to build a deeply flawed…
Handling & Sharing PCAPs Like a Boss with PacketTotal
The fine folks over at @PacketTotal bequeathed an API token on me so I cranked out an R package for it to enable more dynamic investigations work (RStudio makes for an amazing incident responder investigations console given that you can…
Collecting Content Security Policy Violation Reports in S3 ('Effortlessly'/'Freely')
In the previous post I tried to explain what Content Security Policies (CSPs) are and how to work with them in R. In case you didn't RTFPost the TLDR is that CSPs give you control over what can be loaded along with your web content and can…
Head's Up! Roll Your Own HTTP Headers Investigations with the 'hdrs' Package
In the event you wanted to dig deeper I threw together a small package that will let you grab HTTP headers from a given URL and take a look at them. The README has examples for most things but we'll go through a bit of them here as…
CRAN Mirror "Security"
In the "Changes on CRAN" section of the latest version of the The R Journal (Vol. 10/2, December 2018) had this short blurb entitled "CRAN mirror…