Questions tagged [webshot]
17 questions
6
votes
0 answers
R: Error in webshot::webshot(file_temp_html, file, ...) when saving knitr table as image
yesterday I was able to save my knitted tables as images for figures in my paper. However, sometime in the evening something went awry while downloading other packages and now I cannot execute the code and am getting this error:
"Could not load …

Hillary Le
- 103
- 5
2
votes
1 answer
gt::gtsave throws error 'Invalid path to Chrome' (save a .png via webshot)
I have an issue with some code that perfectly worked previously with my setup. I assume it fails now after webshot2 has superseded webshot. Anyway, I am not able to fix the following error.
Aim: I want to process data via teh gt package and save…

FudBe
- 21
- 2
2
votes
1 answer
webshot2::webshot() fails to take screenshot because of file system permissions
Running the below code will sometimes fail and return the attached error message.
webshot2::webshot(url = "~/a_web_page.html", file = "~/an_image.png")
Error in launch_chrome(path, args) :
Failed to start chrome. Error:…

Patrick
- 742
- 7
- 19
2
votes
1 answer
I used htmlwidgets::onRender to add numbers to a sankey network, but the numbers do not seem to be appear after saving the plot as png
I was following this guide and tried using htmlwidgets::onRender to add numbers next to node labels. It displays the change in an html file with no problem, but then when I tried saving it as png, the numbers seem to disappear. I was using…

nightstand
- 329
- 2
- 11
1
vote
1 answer
Is there a way to "pause" the `appshot()` function to allow Shiny App to fully render before running?
Context
I am working on a R package (called mapBliss) for making custom souvenir style maps which utilizes leaflet and the Mapbox-API.
Thanks to the help of SO I managed to figure out how to create a picture frame by using utilizing shiny and…

Bensstats
- 988
- 5
- 17
1
vote
0 answers
Save_kable() does not save table to PNG file on windows, error on webshot: webshot.js returned failure value 1
I have a problem with save_kable () in R on windows. I can not save tables as PNG and pdf. Returns the message: Error on webshot: webshot returned failure value: 1.
I have Ghostscript,…

A M
- 11
- 2
1
vote
2 answers
How can I save a huxtable as png file in R
The huxtable package comes with quick_* functions to save outputs such as html (via quick_html), pdf (via quick_pdf) etc.
However, there seems to be no option to directly save to an imgage (e.g. png).

Patrick
- 742
- 7
- 19
1
vote
1 answer
How to adjust row space in saved formattable table in R
With code below, I'm able to generate formattable table and save it as image:
library(formattable)
library(htmltools)
library(webshot2)
df <- data.frame(
id = 1:10,
name = c("Bob", "Ashley", "James", "David", "Jenny",
"Hans", "Leo",…

ah bon
- 9,293
- 12
- 65
- 148
0
votes
1 answer
Does devtools::build_readme() use {webshot2} (if installed)?
I am currently building a package for a rather specific audience. The package itself is coming along nicely but I am having trouble getting my README.Rmd to convert to a README.md (using devtools::build_readme(). Some functions in my package output…

icurtis
- 1
0
votes
0 answers
Capturing threejs widgets in R Markdown using Rmdshot function of webshot
I have written a R markdown file given below.
---
title: "Embedding 3D htmlwidget into R Markdown"
output: html_document
---
```{r setup, include=FALSE}
library(threejs)
# Create a threejs widget
data(LeMis) # load…

JOYDEEP_MALLICK
- 21
- 5
0
votes
1 answer
Printing and/or Saving RPubs post as pdf
I attempted to save or print the RPubs post as a PDF document, but I was unsuccessful. I also experimented with the provided code, but it didn't work either as required.
library(webshot)
webshot(
url = "https://rpubs.com/Zahidasghar/LDEP"
…

MYaseen208
- 22,666
- 37
- 165
- 309
0
votes
2 answers
How to include html (`flextable`) inside an md/github document using `webshot` and `phantomjs`?
I never had problems using the webshot package and phantomjs to automatically take a screenshot of an html table and include the screenshot in the rendered document, such as on an GitHub README document. For reference, see:…

rempsyc
- 785
- 5
- 24
0
votes
1 answer
appshot does not display graph on debian 11
I try to use appshot to take an image from a shiny app.
It works well on Windows, but not on my Debian server.
If I try this:
appdir <- system.file("examples", "01_hello", package = "shiny")
appshot(appdir, "01_hello.png")
this gives this:
…

corine.marcon
- 1
- 3
0
votes
0 answers
webshot2::webshot is trimming the right side off of a huxtable in R
I am trying to convert an html table created in R via the huxtable package to a png file using webshot2::webshot. Unfortunately, the very right side of the output seems to get trimmed off and I can't figure out how to fix this generically.
I don't…

Patrick
- 742
- 7
- 19
0
votes
0 answers
R/Shiny. Problem with deploy. Saving a png in downloadHandler with webshot and plotly. It works local. Does not work when i am deploying
*** This is the program ***
library(htmlwidgets)
library(plotly)
library(shiny)
library(webshot)
server<-function(input, output){
# fig<-plot_ly(data=iris,x=~Sepal.Length,y=~Petal.Length)
# fig
output$boton1<-downloadHandler(
…