15.6 Reading data

15.6.1 Reading external datasets

To include data inside your application:

    usethis::use_data_raw( name = "my_dataset", open = FALSE ) command
    usethis::use_data(my_dataset)

15.6.2 Including data in your application

To upload data inside your application:

    shiny::fileInput()
    

15.6.3 Using external databases

To include data from external databases use:

  • SQL databases designed to store tabular data
  • NoSQL database like MongoDB to write operations, and store any kind of object

Example of an app that uses on an external database is {databasedemo}, available at engineering-shiny

15.6.4 Data-source checklist

Data-source checklist

Figure 15.6: Data-source checklist