I want to analyze tweets. I am using this code. https://analytics4all.org/2016/11/25/r-twitter-sentiment-analysis/
The problem is that when I execute this line: tweets = searchTwitter('Paris',n=500)
I get this error: Error in curl::curl_fetch_memory(url, handle = handle) : Couldn't connect to server
This is probably caused by wrong information in your Twitter authentication block, looking at the code on that page. The code from the page you gave worked for me, so double check your API key, API secret, access token, and access token secret are entered correctly.