Description Usage Arguments Value References See Also Examples
Generates an
rmarkdown style
template ‘.Rmd’ file and adds knitr to VignetteBuilder
&
Suggests
fields if not already included.
1 2 3 4 |
title |
The title of the rmarkdown vignette document. Defaults to Introduction to x where x is the name of the package. |
file.name |
The name of the vignette file. Defaults to lower case,
underscore (for space) .Rmd file that utilizes the |
vign.path |
The path to the vignettes directory (where the vignette will be placed). |
add.builder |
logical. If |
desc.path |
The path to the ‘DESCRIPTION’ file. Defaults to
|
builder |
The name of the |
Generates a ‘____.Rmd’ vignette file template.
http://rmarkdown.rstudio.com/package_vignette_format.html
http://r-pkgs.had.co.nz/vignettes.html
Other new functions: new_data
,
new_r_test
, new_r
,
new_test
1 2 3 4 5 6 7 8 9 10 | ## Not run:
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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.