r_bg()
don't finished until run rp$read_error()
and rp$read_output()
#287
Labels
reprex
needs a minimal reproducible example
Hello,
Thanks for your great work on
callr
.It provides a easy way to run self-contained function in a new process.
However, I met some issue when I am using
r_bg()
in a shiny app.In my shiny app, I use
r_bg()
to runrmarkdown::render()
function.Here is the psudo-code:
I found that
render_pdf_rp()$is_alive()
is TRUE even if thermarkdown::render()
is finished, unless I callrender_pdf_rp()$read_error()
andrender_pdf_rp()$read_output()
.Of course, I can call
rend_error()
andread_output()
each time. But I think it's not straightforward and I don't find any documents related to this issue(If I miss, please tell me, thanks!).I am not sure this is a bug or a feature. It's better if you can explain it.
Thanks again.
The text was updated successfully, but these errors were encountered: