Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2016-11-25-shiny-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ RStudio generates a template R script called `app.R`.

Notice that the name given to your app was assigned to the directory, not the app script. For your app to work, the file must remain named `app.R`.

Creating a Shiny app with two files called `ui.R` and `server.R` is possible, but the same can be accomplished by using one file. This tutorial will assume you have the one file app structure.
It's possible to create a Shiny app with two files called `ui.R` and `server.R`, but the same can be accomplished by using one file. This tutorial will assume you have the one file app structure.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between an app with two files and one file, any pro/cons?


Local data for your app needs to be stored in a directory called `Data` inside your app directory. When importing the data for use by `app.R` use the full file path, e.g.:

Expand Down