Re: [R] download.file error

2008-04-01 Thread CHIB CO
---Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of CHIB CO > Sent: 01 April 2008 15:28 > To: jim holtman > Cc: r-help@r-project.org > Subject: Re: [R] download.file error > > Hi Jim, > > I just wanted to know if there is a

Re: [R] download.file error

2008-04-01 Thread CHIB CO
error when it is part of that loop. Kind Regards Chib > Date: Mon, 31 Mar 2008 18:33:35 -0500> From: [EMAIL PROTECTED]> To: [EMAIL > PROTECTED]> Subject: Re: [R] download.file error> CC: r-help@r-project.org> > > ?try> > On Mon, Mar 31, 2008 at 6:26 PM, CHIB CO <

[R] download.file error

2008-03-31 Thread CHIB CO
Dear all, I am looking for a way to work out if a file on the internet exists before attempting to download it using the function download.file(). For example, using a url that does not exist url <- "http://finance.yahoo.com/ftse.csv"; destfile <- tempfile() download.file(url = url, destfile = d