I have a script which downloads pdf's from various urls with R. All the files download with different file sizes but appear blank with the following error message:
"A file I/0 error has occurred".
Can anyone help? I have searched the internet for this error message and tried many fixes with no luck. I am using OS Windows 7 Professional.
My code with an example pdf link
pdflist <- "www.geologyontario.mndmf.gov.on.ca/mndmfiles/afri/Data/Imaging/41P11NW0005/41P11NW0005.Pdf"
for (url in pdflist) {
download.file(url, destfile = basename(url))
}