Category Archives: TidyX Screen Cast

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.

TidyX Episode 145: Multi-Input Shiny Apps

This week, Ellis Hughes and I show a way to create a multi-input {shiny} app with a dynamic click table using the {DT} package.

The app has 2 tabs. One tab with a table of summary data and a second tab with individual player information and plots of data. The user interface is constructed in such a way that allows user to go to Tab 1, investigate the summary data and click on any of the rows and be immediately taken to that player’s data in Tab 2. Alternatively, the user can go directly to Tab 2 and simply scroll through and observe data for players they are interested in.

To watch our screen cast, CLICK HERE.

To access our code, CLICK HERE.

TidyX Episode 144: Nested for loops for simulation

More on the topic of for() loops! This week, Ellis Hughes and I discuss how you can use nested for() loops (a loop within a loop) to create simulations of data and test models on the simulations, while storing all of the outputs in lists. This approach is useful for researchers that need to build simulations of data and models to try and obtain grant funding or to provide methodology details for pre-registration.

To watch the screen cast, CLICK HERE.

To access our code, CLICK HERE.

TidyX Episode 143: Four in for(loops)

This week, Ellis Hughes and I continue with last weeks example and discuss for() loops in more detail. Specifically, we discuss four (plus one bonus — so really five) different ways of specifying the for() loop depending on the data you are dealing with and the problem you are trying to solve. We talk through each type of specification approach, advantages and disadvantages, and when you may choose one option over another.

To listen to our screen cast, CLICK HERE.

To access our code, CLICK HERE.