1. Learn
  2. /
  3. Courses
  4. /
  5. Case Studies: Building Web Applications with Shiny in R

Connected

Exercise

Upload a text file (ui)

Rather than typing a long piece of text into a box, it can be more convenient to upload a text file if the text is extremely long.

Uploading files to a Shiny app is done using fileInput().

Instructions

100 XP

Add a file input to the Shiny app with an input ID of "file" and a label of "Select a file".