Category Archives: TidyX Screen Cast

TidyX Episode 150: Shiny Model Building – Predictor Selection & Toast

In this next iteration of our Shiny Modeling building series, Ellis Hughes and I advance our user defined shiny model to ensure that the user is not able to select a variable as both a predictor and outcome variable. We discuss two different ways to do this, based on what sort of controls you’d like to provide the user. Additionally, we cover how to add a Toast drop down box to the user interface. When the user changes something, for example builds a model and then decides they want to change the outcome variable, a little drop down will pop out at the top of the screen to inform the user that something has changed with their data. This ensures that the user is always aware of the output they are looking at, helping to prevent any mistakes in interpretation.

To watch our screen cast, CLICK HERE.

To access our code, CLICK HERE.

TidyX 149: Shiny Statistical Model Building – Train/Test split

This week, Ellis Hughes and I extend our Shiny Modeling Building episode from LAST WEEK and provide the user an opportunity to decide how much of their data to allocate to a training data set. We go through how to build a {shiny} server that can take the user inputs, separate a reactive training and test set based on those inputs, build a regression model, and make out of sample predictions.

To watch our screen cast, CLICK HERE.

To access our code, CLICK HERE.

TidyX 147: Creating a downloadable Markdown file from shiny

This week, Ellis Hughes and I continue to talk about {shiny} web apps.  Building on last week’s screen cast where we created downloadable reports, we will now show how to allow your users to render and download a nice RMarkdown file based on whatever querying of the data they conducted within the {shiny} app.

To watch the screen cast, CLICK HERE.

To access our code, CLICK HERE.

TidyX 146: Adding a download option to Shiny apps

This week, Ellis Hughes and I discuss how to add a download button to the user interface of a {shiny} app. We provide two options for completing this task:

  1. Using a downloadHandler(), which requires some additional coding but produces a nice downloadable PDF.
  2. Using the {shinyscreenshot} package, which offers a very simple button to click and produce a screen shot of the shiny page in a PNG form.

To watch our screen cast, CLICK HERE.

To access our code, CLICK HERE.