-
Notifications
You must be signed in to change notification settings - Fork 126
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
Using chrome_print() inside a Shiny App #91
Comments
Running Line 129 in fa26bc5
This is the major caveat of |
Ok, so... let's wait :) |
* returns a promise when used in Shiny * use finally to clean headless chrome session * add an async argument to chrome_print: this permits to move promises in Suggests and remove shiny dependency see #97 (review) * update NEWS * adapt the styling code * Update documentation Explain that async = TRUE requires the promises package Co-Authored-By: RLesur <RLesur@users.noreply.github.com> * roxygenize * do not turn async to FALSE if promises is not installed Co-Authored-By: RLesur <RLesur@users.noreply.github.com> * handle exceptions * factor out reject calls and simplify code using default functions for resolve and rejects see #97 (comment) * just return early see #97 (comment)
I can make a PR to use a private event loop so that it's safer -- but the new version of later has not yet been released to CRAN. Do you want a PR now that has a |
Ah, I didn't notice that. Great! |
So chrome_print still can't be used in a ShinyApp? or is there a fix in the dev version? |
I haven't tested so far but with the current CRAN version, |
Ok. I was getting some errors when attempting to print a .Rmd file. I needed to install chrome on my remote machine. Thanks! |
Hey,
I was thinking about implementing a
shinyPrint()
function that would allow capturing screenshots of current divs of the app.My first try was:
On our old friend the Old Faithful Geyser Application :
But when I try to run that, I have a blank output:
Running
From another R session works, though.
More information (if ever this helps)
If I launch the very same app, but add a
Sys.Sleep()
of 60 seconds, if I try to do achrome_print()
from another session, it times out.So my guess is that
chrome_print()
fails to catch a Shiny app while it's busy.Not sure if this is an issue you want to dig into. Just, if ever it's easy to fix, a
shinyPrint()
function wrappingchrome_print()
would be nifty.Colin
The text was updated successfully, but these errors were encountered: