wch / webshot

Take screenshots of web pages from R
http://wch.github.io/webshot/
230 stars 37 forks source link

I get a blank png when use webshot function. #72

Open JiaxiangBU opened 5 years ago

JiaxiangBU commented 5 years ago
codelf <- "https://unbug.github.io/codelf/#ggplot"
library(webshot)
webshot(codelf,delay = 2,cliprect = 'viewport')

webshot

sneumann commented 5 years ago

Hi, what happens if you increase delay ? In my case rendering complex network widgets can take up to a minute. Yours, Steffen

JiaxiangBU commented 5 years ago

Hi, what happens if you increase delay ? In my case rendering complex network widgets can take up to a minute. Yours, Steffen

Yes, I try 60 seconds for delay, but it is also a blank result.

Here is a reproducible minimal example.

codelf <- "https://unbug.github.io/codelf/#ggplot"
library(webshot)
webshot(codelf,delay = 60,cliprect = 'viewport')
wch commented 5 years ago

@JiaxiangBU You can try out webshot2: https://github.com/rstudio/webshot2

JiaxiangBU commented 5 years ago

@JiaxiangBU You can try out webshot2: https://github.com/rstudio/webshot2

Thanks, I try to install later in development version now.

https://github.com/rstudio/chromote/blob/75419863f553f3132756c9ee5b3fa5ab54a09ea4/DESCRIPTION#L17

JiaxiangBU commented 5 years ago

HI @wch I try this function webshot2::webshot but get an error, here is the issue https://github.com/rstudio/webshot2/issues/5