I wrote a script to download many PDF files from the internet.
> for (i in 1:length(links)) {
> download.file(links[i], paste(fold, "/", i, ".pdf", sep=""), mode='wb') }
However, when an error occurs in one of the downloads, the entire script stops. I would like the script to ignore the error and go to the next step. Is it possible?
Thanks