Use the servr package to continuously serve and reload
the Rmd document. Run preview_start() function while viewing the Rmd
panel of your presentation. To stop the server, run preview_stop().
Arguments
- file_path
The input Rmd file path (if missing and in RStudio, the current active document is used).
- ...
Additional arguments passed to
rmarkdown::render().- which
An integer vector of the server IDs; by default, IDs of all existing servers in the current R session obtained from
daemon_list(), i.e., all daemon servers will be stopped by default.