new_vignette(title = paste("Introduction to", basename(getwd())), file.name = paste0(gsub("\\s+", "_", tolower(title)), ".Rmd"), vign.path = "vignettes", add.builder = TRUE, desc.path = "DESCRIPTION", builder = "knitr")
title
argument.TRUE
the builder
argument will
be added as the VignetteBuilder
fied in the DESCRIPTION file.
Additionally, if builder = "knitr"
this will be added to
Suggests:
field if not already a dependency.desc.path = "DESCRIPTION"
.VignetteBuilder
in the
DESCRIPTION file. Defaults to builder = "knitr"
.Generates a ____.Rmd vignette file template.
Generates an
rmarkdown style
template .Rmd file and adds knitr to VignetteBuilder
&
Suggests
fields if not already included.
http://rmarkdown.rstudio.com/package_vignette_format.html http://r-pkgs.had.co.nz/vignettes.html
## <strong>Not run</strong>: # pax("temp_dir", open = FALSE) # dir.create("temp_dir/vignettes") # ## Note: If used in RStudio with the root directory set to the # ## package the user does not need to supply `vign,path` or `desc.path` # new_vignette("intro", vign.path = "temp_dir/vignettes", # desc.path = "temp_dir/DESCRIPTION") # unlink("temp_dir", TRUE, TRUE) # ## <strong>End(Not run)</strong>