knit in the same R session
yihui opened this issue · 1 comments
yihui commented
@szilard I just implemented a few things what you mentioned:
servr::rmdv2(in_session = TRUE)
to render R Markdown documents in the current R session;servr::rmdv2(in_session = TRUE, daemon = TRUE)
to start a daemonized server to render Rmd documents, and it will not block the R session, so you can continue typing in the R console;servr::rmdv2(in_session = TRUE, daemon = TRUE, interval = 60)
, for example, to check if the documents need to be re-compiled every 60 seconds (of course, you are not restricted to 60 and you can use any number here)
Please let me know if there is anything else you need.