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.) 


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -