本文介绍了使用R下载pdf文件时遇到的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从互联网上下载pdf文件并将其保存在本地HD中.下载后,pdf输出文件有很多空白页.我该怎么解决?
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?
示例:
require(XML)
url <- ('http://cran.r-project.org/doc/manuals/R-intro.pdf')
download.file(url, 'introductionToR.pdf')
谢谢.
推荐答案
尝试使用wb-mode这样:
Try with wb-mode like this:
download.file(url, 'introductionToR.pdf', mode="wb")
.
对我来说,它就是这样.
For me it works that way.
这篇关于使用R下载pdf文件时遇到的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!