I am having some problem with the weatherData
package in R. As I am using this code:
a <- read.csv(url("http://www.wunderground.com/history/airport/sfo/2016/1/1/CustomHistory.html?dayend=27&monthend=5&yearend=2016&req_city=NA&req_state=NA&req_statename=NA&format=1"),
method ="libcurl")
I am getting this error:
Error in read.table(file = file, header = header, sep = sep, quote = quote, :
unused argument (method = "libcurl")
After I searched a bit, I came to know maybe its due to RCurl
package not being installed in my R version of 3.2.1. But as I started installing RCurl
, I got this:
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
I am using Ubuntu 14.04. Can anyone help me out?