I App runs locally but it throws a warning error:
Warning: Error in h: error in evaluating the argument 'x' in selecting a method for function 'sort': argument is of length zero
101: <Anonymous>
Warning in tm_map.SimpleCorpus(docs, content_transformer(tolower)) :
transformation drops documents.
I don't know if this warning is the cause of why the app disconnects from the Shiny server so quickly.