So I have a prediction app that uses created datatables. I have all files in same directory. When I run the app in shinyapps, the application displays but the application does not respond to user input (or so it appears). But if I close browser and open again in a minute or so, the application works. The application runs correctly in RStudio.
# Top of global.R
library(data.table)
library (plyr)
library(stringr)
library(tm)
load("ngramd.RData")
nxtwd <- function(input=input) {
input <- tolower(input)
input <- iconv(input, "latin1", "ASCII", sub="")
input <- removePunctuation(input)
# Top portion of server.R
library(shiny)
shinyServer(function(input, output,session) {
observe({
if (nchar(as.character(input$text)) > 0) {
I have also added the load statement above the shinyServer and get the same response.
I am using RStudio and Windows 10.