-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run webshot2 on a Linux server? #47
Comments
I tried installing chromium through conda (https://anaconda.org/esss/chromium) and then setting the env variable webshot2::webshot("https://www.r-project.org", file = "test.png")
# https://www.r-project.org screenshot completed
# Warning messages:
# 1: In onRejected(...) :
# An error occurred: Error in self$Page$captureScreenshot(clip = list(x = xmin, y = ymin, width = xmax - : unused argument (captureBeyondViewport = TRUE)
# 2: In normalizePath(value) :
# path[1]="An error occurred: Error in self$Page$captureScreenshot(clip = list(x = xmin, y = ymin, width = xmax - : unused argument (captureBeyondViewport = TRUE)
# ": No such file or directory Similar error to rstudio/gt#1029, though they only get the error running webshot2 through gt and not running webshot2 directly. |
Hi I've been looking deeper into this, and found out what part of the webshot was having the problem. If I run But if I run
The problem is in the selector parameter Hope this helps us to come up with a solution. |
My issue relates to the above. I have installed on a minimal Ubuntu 22 server rstudio server, chromium, webshot2 and chromote. We need - via rstudio server - to generate PDFs of Rmarkdown documents that contain DiagrammeR flowcharts. The PDF rendering fails stating that s$close() is a non-function. With webshot we can generate files of individual shots, but we can not knit the full rmarkdown as a PDF. The issue does not relate to DiagrammeR, any integrated webshot fails. Before raising a full issue with the proper support and details, I would to aks if anyone has helpful pointers that relate to the matter. Many thanks! |
Hi,
I am trying to run webshot2::webshot() on a Linux server. The server does not have Chrome, and I got the below error that Chrome is not found.
I understand webshot2 uses Chrome back-end, but my account in the server can only install local tools using conda. Could you please help suggest any workaround? Either install a local Chrome? or another solution without a browser? Thanks.
The text was updated successfully, but these errors were encountered: