Deploying a corporaexplorer app with your own data (corporaexplorerobject) to a Shiny Server or shinyapps.io is very simple – all it takes is a folder with two files and three lines of code.

Example folder structure of the folder “my_app”:

my_app
|
|-- app.R
|-- saved_corporaexplorerobject.rds  

Where “app.R” contains this code:

library(corporaexplorer)
explore(corpus)
Tip 1: use the settings in the plot_options argument in explore() to fine-tune the appearance of the plots in the app.
Tip 2: to make the data load faster (at the cost of occupying more disk space), save the corporaexplorerobject created by prepare_data() uncompressed by setting compress = FALSE in saveRDS().
library(corporaexplorer)
saveRDS(corpus, "saved_corporaexplorerobject.rds", compress = FALSE)