View source: R/use_vignette_getstarted.R
| use_vignette_getstarted | R Documentation | 
Creates a "Get started" rmarkdown vignette file.
use_vignette_getstarted(
  package = names(get_description()),
  title = "Get started",
  vignette_index_entry = package,
  save_dir = here::here(),
  path = file.path(save_dir, "vignettes", paste0(package, ".Rmd")),
  output = "BiocStyle::html_document",
  force_new = FALSE,
  show = FALSE,
  verbose = TRUE
)
| package | R package name. | 
| title | Title of vignette. | 
| vignette_index_entry | Index entry of the vignette, which is used when creating the navigation bar in the pkgdown site. | 
| save_dir | Directory to save the file to. | 
| path | Path to the file. | 
| output | Vignette output style. Defaults to html_document. | 
| force_new | If the file already exists, overwrite it 
(default:  | 
| show | Print the contents of the file in the R console. | 
| verbose | Print messages. | 
Path to vignette file.
path <- use_vignette_getstarted(package = "mypackage",
                                ## use default save_dir in practice
                                save_dir = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.