You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the past two days, I've been encountering an issue with the gtsave() function when trying to save a table as a PNG file. The error message indicates that it cannot find an available port to start Chrome "Cannot find an available port. Please try again.".
Locally, gtsave() works perfectly in my Shiny app. However, after deploying the app to shinyapps.io, the error occurs, and the download is blocked by Chrome. I’ve searched online but haven’t been able to find a solution.
I’m using chromote version 0.3.1.
Does anyone know how I can fix this?
Thank you in advance for your help.
Best regards,
Below is my session info
devtools::session_info("chromote")
─ Session info ──────────────────────────────────────────────────────────────────
setting value
version R version 4.2.2 (2022-10-31 ucrt)
os Windows 10 x64 (build 22631)
system x86_64, mingw32
ui RStudio
language (EN)
collate French_France.utf8
ctype French_France.utf8
tz Europe/Paris
date 2024-11-29
rstudio 2024.09.1+394 Cranberry Hibiscus (desktop)
pandoc 3.2 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
─ Packages ──────────────────────────────────────────────────────────────────────
! package * version date (UTC) lib source
AsioHeaders 1.22.1-2 2022-12-08 [1] RSPM
P chromote * 0.3.1 2024-08-30 [?] RSPM
cpp11 0.5.0 2024-08-27 [1] RSPM
P curl 6.0.1 2024-11-14 [?] RSPM
P fastmap 1.2.0 2024-05-15 [?] RSPM
P jsonlite 1.8.9 2024-09-20 [?] RSPM
P later 1.3.0 2021-08-18 [?] CRAN (R 4.2.2)
P magrittr * 2.0.3 2022-03-30 [?] CRAN (R 4.2.2)
P processx 3.8.4 2024-03-16 [?] RSPM
P promises 1.2.0.1 2021-02-11 [?] CRAN (R 4.2.2)
P ps 1.8.1 2024-10-28 [?] RSPM
P R6 2.5.1 2021-08-19 [?] CRAN (R 4.2.2)
P Rcpp 1.0.13 2024-07-17 [?] RSPM
P rlang 1.1.4 2024-06-04 [?] RSPM
P websocket 1.4.2 2024-07-22 [?] RSPM
@rich-iannone are there any alternative methods.
I would like to remind that the final objective is to put these PNGs in the power point slides. Since there will be several PNGs I automated the process. The gtsave( ) pngs look better than those obtained using flextable's save_as_image( ) function.
Hello,
For the past two days, I've been encountering an issue with the gtsave() function when trying to save a table as a PNG file. The error message indicates that it cannot find an available port to start Chrome "Cannot find an available port. Please try again.".
Locally, gtsave() works perfectly in my Shiny app. However, after deploying the app to shinyapps.io, the error occurs, and the download is blocked by Chrome. I’ve searched online but haven’t been able to find a solution.
I’m using chromote version 0.3.1.
Does anyone know how I can fix this?
Thank you in advance for your help.
Best regards,
Below is my session info
devtools::session_info("chromote")
─ Session info ──────────────────────────────────────────────────────────────────
setting value
version R version 4.2.2 (2022-10-31 ucrt)
os Windows 10 x64 (build 22631)
system x86_64, mingw32
ui RStudio
language (EN)
collate French_France.utf8
ctype French_France.utf8
tz Europe/Paris
date 2024-11-29
rstudio 2024.09.1+394 Cranberry Hibiscus (desktop)
pandoc 3.2 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
─ Packages ──────────────────────────────────────────────────────────────────────
! package * version date (UTC) lib source
AsioHeaders 1.22.1-2 2022-12-08 [1] RSPM
P chromote * 0.3.1 2024-08-30 [?] RSPM
cpp11 0.5.0 2024-08-27 [1] RSPM
P curl 6.0.1 2024-11-14 [?] RSPM
P fastmap 1.2.0 2024-05-15 [?] RSPM
P jsonlite 1.8.9 2024-09-20 [?] RSPM
P later 1.3.0 2021-08-18 [?] CRAN (R 4.2.2)
P magrittr * 2.0.3 2022-03-30 [?] CRAN (R 4.2.2)
P processx 3.8.4 2024-03-16 [?] RSPM
P promises 1.2.0.1 2021-02-11 [?] CRAN (R 4.2.2)
P ps 1.8.1 2024-10-28 [?] RSPM
P R6 2.5.1 2021-08-19 [?] CRAN (R 4.2.2)
P Rcpp 1.0.13 2024-07-17 [?] RSPM
P rlang 1.1.4 2024-06-04 [?] RSPM
P websocket 1.4.2 2024-07-22 [?] RSPM
P ── Loaded and on-disk path mismatch.
Minimal example
The text was updated successfully, but these errors were encountered: