Tech Talk: A Substack Library for R Programmers
"substackR" is available at GitHub.com/posocap/substackR
This post is a quick bit of tech talk that will probably interest less than 1% of readers, so if you came here for politics instead of programming, skip ahead to the next post now. Still here? Great! You must be a fellow data nerd.
Substack's official website offers a free 'unofficial' API. They probably call it unofficial because it's so limited that they don't want to put the Substack brand name on it. Limited, but free and potentially useful, that is. They offer snippets for the endpoints in numerous languages, but not R, the statistics-heavy data scientist's language of choice, so I went ahead and created an R library to facilitate its use.
You can install the package via GitHub or CRAN. To use devtools with GitHub:
devtools::github_install("posocap/substackR")or with pak:
pak::pak("posocap/substackR")The full code is available here. The package has been …



