preview_site | R Documentation |
preview_site()
opens your pkgdown site in your browser. pkgdown has been
carefully designed to work even when served from the file system like
this; the only part that doesn't work is search. You can use servr::httw("docs/")
to create a server to make search work locally.
preview_site(pkg = ".", path = ".", preview = TRUE)
pkg |
Path to package. |
path |
Path relative to destination |
preview |
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.