我尝试安装软件包RSelenium
:
devtools::install_github("ropensci/RSelenium")
这给了我以下错误:
Downloading GitHub repo ropensci/RSelenium@master
from URL https://api.github.com/repos/ropensci/RSelenium/zipball/master
Installing RSelenium
Error: Found continuation line starting ' <!DOCTYPE html PUB ...' at begin of record.
一些研究告诉我,我可以使用简单的安装它
install.packages("RSelenium, type="Source").
这确实成功安装了软件包,但是在使用此处getPageSource()
提到的功能时会遇到麻烦。
编辑:我还想在成功安装软件包之前添加它,但有一次它突然一直失败。