I don't understand the warning message:
Warning message: In download.file(url, temp, quiet = TRUE, mode = "wb") : downloaded length 2533 != reported length 2533
If the numbers were different, I could understand. The code to reproduce:
url <- "http://www.waterqualitydata.us/Result/search?siteid=USGS-01594440&pCode=01075&countrycode=US&mimeType=tsv&zip=yes"
temp <- tempfile()
download.file(url,temp, quiet=TRUE, mode='wb')
doc <- unzip(temp)
unlink(temp)
retval <- read.delim(doc , header = TRUE, quote="\"",
dec=".", sep='\t',
fill = TRUE)
I can suppress the warning, but I want to make sure I'm not doing anything wrong either. Thanks!
edit: added the read.delim part to get a dataframe out. My platform is x86_64-w64-mingw32/x64 (64-bit), with R version 3.1.2 (2014-10-31).