Webshot、ものすごく便利に使っていたのですが、今日突然101以上のベクトルを渡すとエラーを吐くようになりました。
R
1install.packages("webshot") 2webshot::install_phantomjs() 3 4library(readxl) 5library(webshot) 6table <- read_excel("【ごのごにょ.xlsx", sheet=3) 7url <- table$完成URL2 # 4541個のベクトル(NA含む) 8url <- url[!is.na(url)] # NAを除いて2938個のURL 9webshot(url, file = "pics/webshot.png", delay = 0.5) 10 11Error in webshot(url, file = "pics/webshot.png", delay = 0.5) : 12 webshot.js returned failure value: 127 13In addition: Warning message: 14running command '"C:\Users\thaya\AppData\Roaming/PhantomJS/phantomjs.exe" "C:/Users/thaya/Documents/R/win-library/3.4/webshot/webshot.js" [... truncated]
なぜかベクトルの長さを100に抑えると、動作します。
R
1webshot(url[1:100], file = "pics/webshot.png", delay = 0.5)
なぜでしょうか? また、長いベクトルを一挙に処理してもらうことはできないのでしょうか、、。
R
1Sys.info() 2 sysname release version nodename machine 3 "Windows" ">= 8 x64" "build 9200" "DESKTOP-OS849B2" "x86-64" 4 login user effective_user 5 "thaya" "thaya" "thaya" 6 7R version 3.4.4 (2018-03-15) -- "Someone to Lean On" 8Copyright (C) 2018 The R Foundation for Statistical Computing 9Platform: x86_64-w64-mingw32/x64 (64-bit) 10
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/27 06:03
2018/03/27 06:04