O'Reilly logo

Learning Shiny by Hernán G. Resnizky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running a Shiny web application

In order to run a Shiny web application, it is important to consider that UI.R, server.R, and, if needed, global.R must be placed in the same folder. If an HTML document is used, a folder named www must be created in the application folder to hold the HTML document. Additionally, it must be named index.html.

There are three basic ways to run the applications. They are as follows:

  • runApp(): This opens a browser and executes the application locally. It receives a string representing a directory as an argument. If no argument is provided, runApp() defaults to the working directory.
  • runGist()/runGitHub(): This works exactly as runApp(), but instead of looking for the files locally, it connects to a gist or a GitHub repository, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required