I'm using shiny because of which I need to pass dynamic values( from ui to server and vice versa) to 'geocode' argument of searchTwitter() function in 'twitteR' package. Does anybody know how to do?
mapPlot <- function(searchTerm, maxTweets, lang, lat, long, rad){
mapTweets <- searchTwitter(searchTerm, maxTweets, lang = "en", geocode = lat,long,rad)
mapTweets.df <- twListToDF(mapTweets)
retu(mapTweets.df)
}
entity13 <- eventReactive(input$mapit,{
entity13 <- mapPlot(input$k, input$nt, lang = "en", input$lat, input$long, input$rad)
entity13
})
When I used: geocode = c(lat,long,rad) or geocode = 'lat,long,rad'
it shows error:
Error in strsplit: non-character argument
Is there a solution to this?
