From the course: Building Data Apps with R and Shiny: Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Debug apps with shinyjs::runcodeUI

Debug apps with shinyjs::runcodeUI

From the course: Building Data Apps with R and Shiny: Essential Training

Start my 1-month free trial

Debug apps with shinyjs::runcodeUI

- [Instructor] Let's take a look at how we can use the shinyjs package to debug our shiny apps. To do that, let's go to our exercises, folder 0803, and we'll open up our R Seria project. Okay, let's open our server.R file, and our UI.R file, and let's run our shiny app. So there's an error in our shiny app. We are told non-numeric argument is supplied to a binary operator. Let's use shinyjs to debug this. We'll close our shiny app here, and we're going to load the shinyjs package in both the ui.r file and the server.r file. So we'll type library, shinyjs in the ui.r file and in the server.r file we'll run library shinyjs as well. Let's go back to the ui.r file. There's quite a lot of stuff in the shinyjs package which is required for the UX element to work. So we need to give the package a helping hand by running use shinyjs inside of our fluid page. Not forgetting a comma after that argument, and now, we'll type run code UI, and we'll set the type of the run code UI as text area…

Contents