That works
# hydeUrls = vector of urls to file names
#destList = vector of destination file names
for(files in 1:length(hydeUrls)){
filesFailed[files]<- FALSE
filesFailed[files] <-
tryCatch(download.file(url=hydeUrls[files],destfile=destList[files],quiet=FALSE,mode="wb"),warning
Try this:
tryCatch(log(rnorm(10)), warning = function(m)deparse(m$call[[2]]))
Where log(rnorm(10)) is your expr to evaluate.
On Fri, Mar 18, 2011 at 4:04 PM, steven mosher wrote:
> I've read the help and the archives on tryCatch but I'm still stuggling
> trying to understand how it
> works exac
ote on 03/18/2011 03:04:41 PM:
> [image removed]
>
> [R] Understanding tryCatch
>
> steven mosher
>
> to:
>
> r-help
>
> 03/18/2011 03:07 PM
>
> Sent by:
>
> r-help-boun...@r-project.org
>
> I've read the help and the archives on tryCat
I've read the help and the archives on tryCatch but I'm still stuggling
trying to understand how it
works exactly and how I can use it to get the result I need.
I have a data.frame of urls which point to 11 .zip files. Basically I use
RCurl to get the list of
files from a ftp and then reduce that
4 matches
Mail list logo