Learn R Programming

altdoc (version 0.5.0)

preview_docs: Preview the documentation in a webpage or in viewer

Description

Preview the documentation in a webpage or in viewer

Usage

preview_docs(path = ".")

Value

No value returned. If RStudio is used, it shows a site preview in Viewer. To preview the site in a browser or in another text editor (ex: VS Code), see the vignette on the altdoc website.

Arguments

path

Path to the package root directory.

Examples

Run this code
if (interactive()) {

  preview_docs()

}

# This is an example to illustrate that code-generated images are properly
# displayed. See the `altdoc` website for a rendered version.
with(mtcars, plot(mpg, wt))

Run the code above in your browser using DataLab