Articles by Steven M. Mortimer

Running GitHub Actions Sequentially

July 26, 2020 | Steven M. Mortimer

TL;DR: If you need sequential execution in GitHub Actions consider these solutions: Sequential steps: Steps within a job are always executed sequentially! Sequential jobs: Set max-parallel: 1 within the jobs.strategy element of the workflow. Sequential workflows: Use a repository_dispatch API call at the end of the workflow to ...
[Read more...]

One R Package a Day

June 27, 2018 | Steven M. Mortimer

Discover one R package a day by following the @RLangPackage account on Twitter! Inspired by One R Tip Day (@RLangTip) I created a Twitter bot that will feature one package with its description and GitHub URL each day. The R programming language (referred to as #rstats on Twitter) now has ...
[Read more...]

Scraping Responsibly with R

June 20, 2018 | Steven M. Mortimer

I recently wrote a blog post here comparing the number of CRAN downloads an R package gets relative to its number of stars on GitHub. What I didn’t really think about during my analysis was whether or not scraping CRAN was a violation of its Terms and Conditions. I ...
[Read more...]

Most Starred R Packages on GitHub

June 17, 2018 | Steven M. Mortimer

It seems like all the best R packages proudly use GitHub and have a README adorned with badges across the top. The recent Microsoft acquisition of GitHub got me wondering: What proportion of current R packages use GitHub? Or at least refer to it in the URL of the package ...
[Read more...]

Analyzing Customer Data from Square

May 17, 2018 | Steven M. Mortimer

The Square Data Model Authenticating Pulling Transaction Data Spend by Customer Group Issues with the APIsCannot Request Specific Fields Cannot Update Customer Groups Programmatically Customer ID Not On Transactions The Square Data Model Whether you own your own business or consult for a business using Square to capture payment data, ...
[Read more...]

Building a Corporate R Package

November 2, 2017 | Steven M. Mortimer

Analytical Functions Company Constants Templating/Formatting Data Source Connections Tutorials Analytical Functions Creating functions is a programming best practice. They are easier to monitor, test, and teach to others. If your team performs routine calculations, establish a standard by adding functions to the shared library and encourage everyone to use ... [Read more...]

Automating R Scripts with Cron

August 14, 2017 | Steven M. Mortimer

Simple Automation Adding Error Emailing Adding Script Logging Simple Automation If you would like to automate R scripts, one method is to use the cron daemon already packaged on Unix-like servers. Let’s say you have script in your home...
[Read more...]

Google Sites for Documentation

June 1, 2017 | Steven M. Mortimer

The WYSIWYG Access Control Permissions Embedded Google Docs, Sheets, etc. Built In Google Search and Analytics Final Thoughts The title of this post is probably off-putting to a large number of people. Why on earth would I use Google Site... [Read more...]

An R User Chooses a Python IDE

April 6, 2017 | Steven M. Mortimer

Jupyter Notebooks Rodeo Spyder Text Editor (e.g. Sublime) PyCharm Final Thoughts Yes, this is a post about IDEs. I don’t intend to insult or incite any ill-will towards any person or project. The purpose of this post is to give other p...
[Read more...]

PFA with the R Package aurelius

February 12, 2017 | Steven M. Mortimer

I first heard about the Portable Format for Analytics (PFA) through KDnuggets in 2016. There was a post that in vague way talked about the virtues and benefits of PFA, but not to completely supplant PMML, which I was already familiar with. PMML was pretty cool, but I couldn’t find ... [Read more...]

Creating an RStudio Addin

December 9, 2016 | Steven M. Mortimer

I never thought too much about RStudio addins, but I saw a few cool examples ( jadd, colorpicker, and addinslist) and decided to take a closer look. After a little research, it seemed easier than I thought. It was easier because RStudio provided some excellent documentation on addins and it turns ...
[Read more...]

The Unfinished duplicated Function

November 19, 2016 | Steven M. Mortimer

If you’re a regular R user, then you’ve probably used or have seen the function duplicated(). If you’ve only grown up in the world of dplyr and other tidyverse packages with its cool function distinct(), then I highly envy you. In any case, you might find yourself ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)