Message-ID: <1350318096305-4646252.post@n4.nabble.com>
Date: 2012-10-15T16:21:36Z
From: veepsirtt
Subject: Download a file from url
In-Reply-To: <507C2CC8.9060005@sapo.pt>
Mr Jeffrey Breen
mailed me the following code.
but it is not giving me the results under Windows 7.
With regards
veepsirtt'
library(XLConnect)
url = "http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls"
local.xls.file = tempfile()
download.file(url, local.xls.file, method='wget', extra="-U 'Mozilla/5.0
(X11; Linux) Gecko Firefox/5.0'")
wb = loadWorkbook(local.xls.file, create=F)
data = readWorksheet(wb, sheet=1)
--
View this message in context: http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646252.html
Sent from the R help mailing list archive at Nabble.com.