Step 1: Reorganize the Code
Start with app-0.R
. It’s a working app-see for yourself!
Even though the app has very little functionality, the script is already crowded.
-
Pull out the UI and put it into a file
ui.R
. Do the same forserver
. -
Source these into
app-0.R
. -
Make sure the app still works!