View source: R/add_readme_vignette.R
add_readme_to_vignette | R Documentation |
If a package does not have a vignette but has a README.md
, make the contents of the README.md
be the vignette
add_readme_to_vignette(
source,
vignette_title = NULL,
braced_vignette_title = "README",
vignette_slug = "README",
quiet = FALSE
)
source |
String. The directory path where the package is deployed. |
vignette_title |
String. The intended title of the vignette. If not provided, no title will be attached. |
braced_vignette_title |
String. The title of the vignette. |
vignette_slug |
String. filename to be used as the vignette. By default this will be README. |
quiet |
Logical. Whether to message about what is happening. |
Review the DISCRIPTION file and file structure and add the necessary dependencies and files.
Invisible NULL
.
## Not run:
# In the package directory.
add_readme_to_vignette(".")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.