在if(file.access(phantompath,1)<;0){:当我使用Phantomjs(port=4567l)时,参数的长度为零 [英] I got error like Error in if (file.access(phantompath, 1) < 0) { : argument is of length zero when I use Phantomjs(port = 4567l)
本文介绍了在if(file.access(phantompath,1)<;0){:当我使用Phantomjs(port=4567l)时,参数的长度为零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码是
library(RSelenium)
library(wdman)
pDrv <- phantomjs(port = 4567L)
下面是我在运行上述代码后得到的错误。
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
Error in if (file.access(phantompath, 1) < 0) { :
argument is of length zero
这个问题困扰了我几个星期,自从我换了笔记本电脑并升级到Win10后,它再也不能像以前一样正常运行了,请帮帮我。
推荐答案
试试
binman::rm_platform("phantomjs")
wdman::selenium(retcommand = TRUE)
如果仍然出现错误,请here下载压缩文件。解压缩,获取.exe文件,通常将其放入此文件夹(您的文件夹可能不同)
C:UsersuserAppDataLocalinmaninman_phantomjswindows2.1.1
这篇关于在if(file.access(phantompath,1)<;0){:当我使用Phantomjs(port=4567l)时,参数的长度为零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文