title: I am working on Sentimental analysis on twitter data got this error: Error in get_oauth_sig() : OAuth has not been registered for this session
body: <pre><code> &gt;  oauth_endpoint(authorize = "https://api.twitter.com/oauth", access=                 "https://api.twitter.com/oauth/access_tocken" )
  </code></pre>
  
  <blockquote>
    <p>download.file(url='<a href="http://curl.haxx.se/ca/cacert.pem" rel="nofollow noreferrer">http://curl.haxx.se/ca/cacert.pem</a>', destfile='cacert.pem')
         trying URL '<a href="http://curl.haxx.se/ca/cacert.pem" rel="nofollow noreferrer">http://curl.haxx.se/ca/cacert.pem</a>' Content type 'application/x-pem-file' length 236061 bytes (230 KB)<br>
         downloaded 230 KB</p>
  </blockquote>
  
  <pre><code> &gt; reqURL &lt;- 'https://api.twitter.com/oauth/request_token'
   &gt; accessURL &lt;- 'https://api.twitter.com/oauth/access_token'
   &gt; authURL &lt;- 'https://api.twitter.com/oauth/authorize'
   &gt; consumerKey &lt;- 'key used'
   &gt; consumerSecret &lt;- 'key used'
   &gt; accesstoken  &lt;- 'key used'
   &gt; accesssecret &lt;- 'key used'
   &gt; Cred = OAuthFactory$new(consumerKey=consumerKey, 
   +                         consumerSecret=consumerSecret, 
   +                         requestURL=reqURL, 
   +                         accessURL=accessURL, 
   +                         authURL=authURL)
   &gt; Cred$handshake(cainfo= system.file('CurlSSL', 'cacert.pem', package = 'RCurl'))
   To enable the connection, please direct your web browser to: 
   https://api.twitter.com/oauth/authorize?oauth_token=0AflNwAAAAAA4AHwAAABYOpNKOk
   When complete, record the PIN given to you and provide it here: 9642678
   &gt; save(Cred, file = 'twitter authentication.Rdata')
   &gt; some_tweets = searchTwitter("trump", n=2000, lang = "en")
   **Error in get_oauth_sig() : OAuth has not been registered for this session**
  </code></pre>
  
  <p>how to solve this</p>