Hi Chib

>>whether there is a way of handling the error you get in the
download.file() function

I think the function "try" will do this for you. That is, handle the
error.

Have a look at ?try.

Regards

John Seers 


---

-----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 function in R that can tell you
whether a file on the internet exists before you attempt to download it
or whether there is a way of handling the error you get in the
download.file() function without having it break a for loop with the
download error when it is part of that loop.
Kind Regards
Chib

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to