Articles by R | datawookie

{emayili} Rendering Plain Markdown

September 9, 2021 | R | datawookie

We’ve been able to attach text and HTML content to messages with {emayili}. But something that I’ve really been wanting to do is render markdown directly into an email. In version 0.4.19 I’ve added the ability to directly render plain markdown into a message. library(emayili) The render() ...
[Read more...]

{clockify} Time Tracking from R

September 8, 2021 | R | datawookie

At Fathom Data we use Clockify to keep detailed records of the time that we spend working on our clients’ projects. Up until fairly recently we manually generated timesheets at the end of each month that were sent through to the clients along with their invoices. Our experience has been ...
[Read more...]

Pre-Commit Hook for Processing README.Rmd

September 4, 2021 | R | datawookie

When writing an R package I usually write a README.Rmd file that I render to README.md. I use {pkgdown} to then create documentation. I run the last step via CI, so I never need to think about it. The problem is that I regularly forget to process the ...
[Read more...]

{emayili} Interpolating Message Content

September 2, 2021 | R | datawookie

A small new feature added to {emayili}: the ability to interpolate content into the email message body. Load Package Load the {emayili} package and create a message skeleton. library(emayili) options( # Always print message body. envelope_details = TRUE, # Print message from pipeline. envelope_invisible = FALSE ) # Create a message skeleton. # email
[Read more...]

{emayili}: Rudimentary Email Address Validation

August 20, 2021 | R | datawookie

A recent issue on the {emayili} GitHub repository prompted me to think a bit more about email address validation. When I started looking into this I was somewhat surprised to learn that it’s such a complicated problem. Who would have thought that something as apparently simple as an email ...
[Read more...]

Old ‘Hood, New ‘Hood

August 10, 2021 | R | datawookie

I recently moved from suburban South Africa to rural England. I’m figuring out my new environment. Making some maps seemed to be a good way to get familiar with the surroundings. In the process I wanted to figure out two things: how to get maps wi...
[Read more...]

TomTom Routing

July 25, 2021 | R | datawookie

While working with the Google Mobility Data I stumbled upon the TomTom Traffic Index. I then learned that TomTom has a public API which exposes a bunch of useful and interesting data. Seemed like another opportunity to create a smaller R package. ...
[Read more...]

TomTom Traffic

July 24, 2021 | R | datawookie

In the previous post I introduced the {tomtom} package and showed how it can be used for geographic routing. Now we’re going to look at the traffic statistics returned by the TomTom API. As before we’ll need to load the {tomtom} package and specif...
[Read more...]

Mobility & Unrest in South Africa

July 23, 2021 | R | datawookie

Did the recent unrest in South Africa have a detectable effect on mobility patterns? Google Mobility Data Google has used anonymised data personal location data to gather information on mobility during the COVID-19 pandemic. These data are free...
[Read more...]

Shiny on ECS

June 23, 2021 | R | datawookie

A recipe for setting up a simple Shiny app on ECS. Docker Image ? If you want to simply use my Docker image for testing, then you can skip this section and go straight to deploying. Since this is for illustration purposes, I’m going to keep the a...
[Read more...]

Using {pagedown} in Docker

May 27, 2021 | R | datawookie

I’m building an automated reporting system which generates PDF reports. My approach is to use R Markdown to write the report and render to PDF using the excellent {pagedown} package. Ultimately the system needs to be packaged in Docker and deployed...
[Read more...]

{hagr} Linnaean Classification

April 15, 2021 | R | datawookie

I’ve taken another look at the {hagr} data, which I wrote about previously. This time I’m focusing on the hierarchy of creatures. Taxonomic Rank The Linnaean Taxonomy is a hierarchical classification system for organisms devised by Carl Linnaeus. ...
[Read more...]

{hagr} Database of Animal Ageing and Longevity

April 11, 2021 | R | datawookie

I came across the Human Ageing Genomic Resources. They are doing some fascinating work and expose some engrossing data. I wanted to make the data easier for me to work with, and an R package seemed to be the natural vehicle to do this. For more information on these data, ...
[Read more...]

The Easter Bunny is Cashing In

April 2, 2021 | R | datawookie

Has the price of Easter Eggs shot up since last year? Let’s use data from Trundler to investigate. I’ll do the analysis in R using the {trundler} package. Data Preparation I’ve already got a collection of product IDs stashed in PRODUCT_ID. We nee...
[Read more...]

Making the Most of Mobility

April 1, 2021 | R | datawookie

I became aware of the Community Mobility Reports data courtesy of this tweet from Mike Schussler: Next time someone tells you that people are misbehaving you can tell the the data says no they are listening doing as they are told. Data from our mo...
[Read more...]

An Environment for Reliably Rendering Figures in R

March 22, 2021 | R | datawookie

Fathom Data is working on a project to reproduce the figures from the CORE textbook The Economy using R and {ggplot2}. There’s a strict style guide which specifies the figure aesthetics including colours and font. We’re a team of seven people working on as many different setups. The ...
[Read more...]

{emayili:0.4.6} Attachments with UTF-8 Filenames & Setting Sender

March 7, 2021 | R | datawookie

Two new features in the {emayili} (0.4.6) package for easily sending emails from R. Package Setup If you have not already installed the package, then grab it from CRAN or GitHub.
# From CRAN.
install.packages("emayili")
# From GitHub.
remotes::install_github("datawookie/emayili")
Load the package.
library(emayili)
Check that you have the current version.
packageVersion("emayili")
[1] ‘0.4.6’
Let’s quickly set up an ...
[Read more...]

{blogdown}: Optimise PNG Image Size

February 20, 2021 | R | datawookie

Inspired by the informative post from Jumping Rivers about selecting the correct image file type, I decided to optimise PNG file size as part of this blog’s CI pipeline. OptiPNG As suggested, I used optipng. Let’s see how well this works on a lar...
[Read more...]

{emayili}: Sending Birthday Messages

February 17, 2021 | R | datawookie

Suppose that you want to use {emayili} to send birthday messages (this post motivated by issue #61). Specifically, you want to send one message to the person having a birthday and send multiple messages to other people, reminding them of the birthday. Load a couple of packages.
library(emayili)
library(dplyr)
Set up some ...
[Read more...]
1 2 3

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)