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.
Problem-solving in Shiny apps 101
From the course: Building Data Apps with R and Shiny: Essential Training
Problem-solving in Shiny apps 101
- [Instructor] Developing Shiny apps is definitely more complicated and error-prone than writing vanilla R code that runs when you tell it to run. That's because Shiny apps are fairly complicated things. There's at least two halves to them. There's the server.R file where R code is run, and outputs are rendered, ready to be received by the ui.R file. You might find that you have an error in one of those files individually, or you might find that you're accidentally misspelling variables between the two files. If you only intend to run your Shiny app on your local machine, then you're done. No more debugging necessary once you have the Shiny app working. However, in most projects, you'll find yourself wanting to make a Shiny app available to your colleagues, or customers, which means you will need to deploy your app. It's worthwhile learning this mantra: Shiny apps that work on your local machine don't necessarily work when deployed. Please remember this when you have issues and know…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.