-
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. |
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: