Re: [R] Download a file from url

2012-11-19 Thread Suzen, Mehmet
you can use RCurl for web connections from Duncan Lang, see its paper: http://www.omegahat.org/RCurl/RCurlJSS.pdf getURL there will solve your problem. On Sun, Nov 18, 2012 at 2:07 AM, veepsirtt wrote: > Hi R, > I installed wget and tried to download the file from this > http://nseindia.com/cont

Re: [R] Download a file from url

2012-11-17 Thread veepsirtt
Hi R, I installed wget and tried to download the file from this http://nseindia.com/content/equities/scripvol/datafiles/16-11-2012-TO-16-11-2012ACCEQN.csv but it fails. How to get it using wget? thanks veepsirtt #Define Working Directory, where files would be saved setwd('G:/NIFTY') #Define sta

Re: [R] Download a file from url

2012-10-16 Thread Henrik Bengtsson
Have you tried downloading it manually using a web browser or similar? If so, compare that downloaded file to that you get from download.file() and see if they're the same. If the same, the problem is elsewhere (which is not unlikely to be the case). /H On Mon, Oct 15, 2012 at 6:15 PM, veepsirtt

Re: [R] Download a file from url

2012-10-16 Thread veepsirtt
Hello Prof Brian Ripley I installed wget for windows from http://users.ugent.be/~bpuype/wget/ and got the results very thanks veepsirtt --

Re: [R] Download a file from url

2012-10-15 Thread Prof Brian Ripley
On 16/10/2012 02:33, veepsirtt wrote: Currently download methods "internal", "wget", "curl" and "lynx" are available. If wget is not possible under windows,how to use 'curl'?. But it is. You need the programs wget or curl installed and in your path: pre-compiled versions for Windows are avail

Re: [R] Download a file from url

2012-10-15 Thread veepsirtt
Currently download methods "internal", "wget", "curl" and "lynx" are available. If wget is not possible under windows,how to use 'curl'?. thanks veepsirtt -- View this message in context: http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646296.html Sent from the R help mailing

Re: [R] Download a file from url

2012-10-15 Thread veepsirtt
Hi Henrik, i included the mode='wb' but gives me this error. What is the other method to download the excel file?. With kind 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.xl

Re: [R] Download a file from url

2012-10-15 Thread Henrik Bengtsson
You didn't say what errors you've got but you probably wants to specify argument mode="wb" in your download.file() call, cf. https://stat.ethz.ch/pipermail/r-devel/2012-August/064739.html /Henrik On Mon, Oct 15, 2012 at 1:57 AM, veepsirtt wrote: > Hi > > Download the xls file from this link > h

Re: [R] Download a file from url

2012-10-15 Thread veepsirtt
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='wg

Re: [R] Download a file from url

2012-10-15 Thread Rui Barradas
Hello, Your page returns "access denied": library(RCurl) url <- "http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls"; xls <- getURL(url) cat(xls) Access Denied Access Denied You don't have permission to access "http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls" on this

Re: [R] Download a file from url

2012-10-15 Thread veepsirtt
Hi Download the xls file from this link http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls I tried this --- library(XLConnect) url = "http://www.nseindia.com/con