Re: [R] how to get xmlToList() to retry if http fails

2013-03-06 Thread Ben Tupper
Hi, On Mar 6, 2013, at 4:12 PM, Waichler, Scott R wrote: > Hi, > > I am using xmlToList() in a loop with a call to a webservice, per the code > below. > > # Loop thru target locs > for(i in 1:num.target.locs) { >url <- paste(sep="/", "http://www.earthtools.org/timezone";, lat[i], lon[i

[R] how to get xmlToList() to retry if http fails

2013-03-06 Thread Waichler, Scott R
Hi, I am using xmlToList() in a loop with a call to a webservice, per the code below. # Loop thru target locs for(i in 1:num.target.locs) { url <- paste(sep="/", "http://www.earthtools.org/timezone";, lat[i], lon[i]) tmp <- xmlToList(url) df$time.offset[i] <- tmp$offset sys