wch / webshot

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

cliprect = "viewport" in function webshot gives an error #119

Closed heeringa0 closed 1 year ago

heeringa0 commented 1 year ago

Using cliprect = "viewport" in the function webshot gives an error:

Warning: Error in ||: 'length = 4' in coercion to 'logical(1)'

Example: webshot("https://www.r-project.org/", "r-viewport.png", cliprect = "viewport")

(example taken from http://wch.github.io/webshot/ ).

No error occurs for: webshot("https://www.r-project.org/", "r-viewport.png")

but I need the viewport clipping, so I hope there is a solution for this problem.

wch commented 1 year ago

This is probably due to a change in R 4.3. See here for a bit more info: https://www.jumpingrivers.com/blog/whats-new-r43/

This was fixed by #117 but we haven't had a release since then. You can install this by running:

remotes::install_github("wch/webshot")

We can make a new release some time next week.

heeringa0 commented 1 year ago

Thanks, installing from GitHub solved the problem.

A new release would be wonderful.


From: Winston Chang @.> Sent: Saturday, June 24, 2023 5:31 PM To: wch/webshot @.> Cc: Wilbert Heeringa @.>; Author @.> Subject: Re: [wch/webshot] cliprect = "viewport" in function webshot gives an error (Issue #119)

This is probably due to a change in R 4.3. See here for a bit more info: https://www.jumpingrivers.com/blog/whats-new-r43/

This was fixed by #117https://github.com/wch/webshot/pull/117 but we haven't had a release since then. You can install this by running:

remotes::install_github("wch/webshot")

We can make a new release some time next week.

— Reply to this email directly, view it on GitHubhttps://github.com/wch/webshot/issues/119#issuecomment-1605554093, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFKKNGN4N5A3D37XVSTQPVTXM324FANCNFSM6AAAAAAZSOLBXQ. You are receiving this because you authored the thread.Message ID: @.***>

wch commented 1 year ago

The new version, 0.5.5, is on CRAN. It may take a few days for binary packages to built for Mac and Windows. https://cran.r-project.org/web/packages/webshot/