2
目前我正在研究R中的“getURL”和“download.file”命令。到目前为止,两者都像魅力一样工作。getURL和downfile.file不会下载网页的内容(R)
但是,我有一个具体的链接问题,我不知道为什么这个不起作用。
运行
getURL
("http://www.r-bloggers.com/improving-script_002-%e2%80%9cmonitor%e2%80%9d/")
产生错误:
Error in curlPerform(curl = curl, .opts = opts, .encoding = .encoding) : embedded nul in string: '\037\b'
的 “download.file” 命令还创建了一个古怪的编码文件:
download.file
("http://www.r-bloggers.com/improving-script_002-%e2%80%9cmonitor%e2%80%9d/",
"test.html")
这是否与您合作?
它不适合我。 'myURL =“http://www.att.com/”' – 2015-06-27 05:54:40