我在如果(file.access(phantompath,1)<0){得到了像错误错误:参数是零长度的,当我使用Phantomjs(端口=4567升)

问题描述:

我的代码是下面我在如果(file.access(phantompath,1)<0){得到了像错误错误:参数是零长度的,当我使用Phantomjs(端口=4567升)

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不要下载zip文件。将它解压缩,GETT .exe文件,把它变成通常这个文件夹(你的可能会有所不同)

C:\Users\user\AppData\Local\binman\binman_phantomjs\windows\2.1.1