I would like to download a pdf file from the internet and save it in the local HD. After download, the pdf output file has lots of empty pages. What can I do to fix it?
Try with wb-mode like this:
download.file(url, 'introductionToR.pdf', mode="wb").
download.file(url, 'introductionToR.pdf', mode="wb")
For me it works that way.