shiny - Error in .getReactiveEnvironment()$currentContext() -
please help, error reactive function near code:
stockstxtclosure <- reactive({ query <- parsequerystring(clientdata$url_search) stockstweets = searchtwitter(query[["ticker"]], n=10, lang="en") stockstxt = sapply(stockstweets, function(x) x$gettext()) return (stockstxt) }) stockstxt = stockstxtclosure() stockstxt = gsub("(rt|via)((?:\\b\\w*@\\w+)+)", "", stockstxt)
error is:
error in .getreactiveenvironment()$currentcontext() : operation not allowed without active reactive context. (you tried can done inside reactive expression or observer.)