View source: R/use_bioc_vignette.R
use_bioc_vignette | R Documentation |
This function is very similar to usethis::use_vignette()
except
that it uses a template from biocthis
. This template includes
instructions for citing other packages using RefManageR
, uses
sessioninfo::session_info()
for displaying the R session information since
it includes GitHub installation information and other useful details. The
template also includes a section on how to ask for help and required
knowledge.
use_bioc_vignette(name, title = name)
name |
Just like in |
title |
Just like in |
This function adds and/or replaces the
vignettes/<name>.Rmd
file in your R package.
## Not run:
## Run this function in your package
pkg <- basename(usethis::proj_get())
biocthis::use_bioc_vignette(pkg, paste("Introduction to", pkg))
## End(Not run)
## Create an example package for illustrative purposes.
## Note: you do not need to run this for your own package!
pkgdir <- biocthis_example_pkg()
## Create a template vignette file that is Bioconductor-friendly
biocthis::use_bioc_vignette("biocthisexample", "Introduction to biocthisexample")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.