preview: Previewing rmarkdown documents

previewR Documentation

Previewing rmarkdown documents

Description

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().

Usage

preview_start(file_path, ...)

preview_stop(which = NULL)

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.

Value

Starts serving the current files to RStudio's Viewer pane.

Stops serving the current files to RStudio's Viewer pane.

References

xaringan


iheiddown documentation built on Nov. 10, 2022, 5:52 p.m.