简体   繁体   中英

I got error like Error in if (file.access(phantompath, 1) < 0) { : argument is of length zero when I use Phantomjs(port = 4567l)

my code is

library(RSelenium)
library(wdman)
pDrv <- phantomjs(port = 4567L)

below is what I got an error after runing above codes.

    checking phantomjs versions:
    BEGIN: PREDOWNLOAD
    BEGIN: DOWNLOAD
    BEGIN: POSTDOWNLOAD
    Error in if (file.access(phantompath, 1) < 0) { : 
      argument is of length zero

this problem has baffled me for couple of weeks, since I changed my laptop and upgrade to win10 ,never can it run well as before ,pls help me .

try this

binman::rm_platform("phantomjs")
wdman::selenium(retcommand = TRUE)

If error still comes out, then go here do download zip file. Unzip it, gett the .exe file, put it into usually this folder (yours may be different)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM