Open ThierryO opened 1 year ago
The basic check fails add suggested here fails too.
> library(webshot)
> webshot("https://www.r-project.org/", "r.png")
Error in webshot("https://www.r-project.org/", "r.png") :
webshot.js returned failure value: 1
> library(webshot)
> webshot("https://www.r-project.org/", "r.png")
Auto configuration failed
139826745849792:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libproviders.so): libproviders.so: cannot open shared object file: No such file or directory
139826745849792:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139826745849792:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=providers, path=providers
139826745849792:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=providers
Error in webshot("https://www.r-project.org/", "r.png") :
webshot.js returned failure value: 1
> packageVersion("webshot")
[1] ‘0.5.2’
(Same with version 0.5.4)
Related to https://github.com/ariya/phantomjs/issues/15449. It appears that phantomjs is not maintained anymore.
Following https://stackoverflow.com/a/72679175/6888231, this solution solves the issue for me
Sys.setenv(OPENSSL_CONF="/dev/null")
The reason is the updated OpenSSL of my system.
Sys.setenv(OPENSSL_CONF="/dev/null")
This solution works for me too.
I'm having a similar issue as #112 when rendering a Rmarkdown file with leaflet() to pdf. Rendering the minimal example below returns the error
Error in (function (url = NULL, file = "webshot.png", vwidth = 992, vheight = 744, : webshot.js returned failure value: 1
. I've installed the latest version from CRAN and ranwebshot::install_phantomjs(force = TRUE)
.