title: Executing cURL command in R
body: <p>I am using the Twitter REST API to retrieve data in JSON format.  Twitter's developer page makes it easy by providing a command that can be pasted directly into the terminal and executed.  The following command works in the terminal. </p>
  
  <pre><code> curl --get 'https://api.twitter.com/1.1/statuses/user_timeline.json' --data 'count=3200&amp;screen_name=BernieSanders' --header 'Authorization: OAuth oauth_consumer_key="####", oauth_nonce="####", oauth_signature="####", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1467719924", oauth_token="####", oauth_version="1.0"' --verbose
  </code></pre>
  
  <p>I am trying to get the JSON data into R, and would like to execute this same command in the R console.  I have tried <code>curlconverter</code> using the exact same code, get an error that there is an unexpected symbol.  However, the code is exactly the same.  Is there a more suitable package for executing this code? </p>
  
  <pre><code>curlExample &lt;- "curl --get 'https://api.twitter.com/1.1/statuses/user_timeline.json' --data 'count=3200&amp;screen_name=BernieSanders' --header 'Authorization: OAuth oauth_consumer_key="####", oauth_nonce="####", oauth_signature="####", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1467719924", oauth_token="####", oauth_version="1.0"' --verbose"
  </code></pre>