Author Archives: Patrick

TidyX 73: Update Shiny Automatically When the Database Changes

Continuing with our work on accessing a SQL database via R, Ellis Hughes and I deal with one of the more commonly faced problems — getting your {shiny} app to automatically update when something in the database changes!

We walk through setting up the {shiny} server so that it checks the database for any new data, pulls the new data and automatically refreshes the {shiny} app without disturbing whatever the user is looking at. This set up will ensure that your end users are always viewing the most up to date data in your system.

To watch the screen cast, CLICK HERE.

To access our code, CLICK HERE.

TidyX 70: Getting Started with SQL Databases in R — dbplyr

This week, Ellis Hughes and I kick off a new series discussing the use of SQL databases in R.

In this episode we cover a simple way to use R, more specifically the dbplyr package, to build your own SQLite database, add tables to the database, and query the database using tidyverse instead of SQL syntax.

To watch our screen cast, CLICK HERE.

To access our code, CLICK HERE.

TidyX 69: Cleaning Messy Data, Part 6 – Special Guest Mara Averick

To round out our Cleaning Messy Data series, Ellis Hughes and I are joined by R superstar, Mara Averick, as she walks us through cleaning up very messy (but timely) Olympic Pentathalon data.

For those that don’t know, Mara is a Developer Advocate for R Studio and is an a fantastic Twitter follow. She is always sharing useful R content and helping others in the R community solve difficult problems with their code.

To watch the screen cast, CLICK HERE.

To access Mara’s code, CLICK HERE.