yihui/servr

knit in the same R session

yihui opened this issue · 1 comments

mentioned by @szilard at Strata

@szilard I just implemented a few things what you mentioned:

  1. servr::rmdv2(in_session = TRUE) to render R Markdown documents in the current R session;
  2. 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;
  3. 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.