Unable to install package RCurl
<p>I am having some problem with the <code>weatherData</code> package in R. As I am using this code:  </p>

<pre><code>a &lt;- read.csv(url("http://www.wunderground.com/history/airport/sfo/2016/1/1/CustomHistory.html?dayend=27&amp;monthend=5&amp;yearend=2016&amp;req_city=NA&amp;req_state=NA&amp;req_statename=NA&amp;format=1"), 
                  method ="libcurl")
</code></pre>

<p>I am getting this error:  </p>

<pre><code>Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
  unused argument (method = "libcurl")
</code></pre>

<p>After I searched a bit, I came to know maybe its due to <code>RCurl</code> package not being installed in my R version of 3.2.1. But as I started installing <code>RCurl</code>, I got this:</p>

<pre><code>Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/dell/R/x86_64-pc-linux-gnu-library/3.2/RCurl’
Warning in install.packages :
  installation of package ‘RCurl’ had non-zero exit status
</code></pre>

<p>I am using Ubuntu 14.04.
Can anyone help me out?</p>