preview_docs | R Documentation |
Preview the documentation in a webpage or in viewer
preview_docs(path = ".")
path |
Path to the package root directory. |
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.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.