Re: [R] Skip error in downloading file in loop

2017-10-21 Thread Jeff Newmiller
One of the recommendations in the Posting Guide is to read the archives before posting... even following along with recent posts would have pointed out the existence of the tryCatch function. ?tryCatch -- Sent from my phone. Please excuse my brevity. On October 21, 2017 8:01:02 AM PDT, Miluji

[R] Skip error in downloading file in loop

2017-10-21 Thread Miluji Sb
I am trying to download data from NASA web-service. I am using the following code; for( i in 1:8) { target1 <- paste0(" https://hydro1.gesdisc.eosdis.nasa.gov/daac-bin/access/timeseries.cgi?variable=NLDAS:NLDAS_FORA0125_H.002:TMP2m&location=GEOM:POINT( ", cities[i, "lon_nlda