packagedocs provides a mechanism for simple generation and automated deployment of nice-looking online R package documentation that plugs into the traditional R package vignette system. Example for this package here.
"vignettes/docs.Rmd"
devtools::install_github("hafen/packagedocs")
There are three main functions.
To initialize your packagedocs documentation:
# in current package directory
packagedocs::init_vignettes()
This will create some files in your package's "vignettes"
directory. Edit "vignettes/docs.Rmd
" and to generate your vignettes, run:
packagedocs::build_vignettes()
To set up your repository to automatically build and deploy to your github pages branch on every commit:
packagedocs::use_travis()
More detail about how to use these is found in the package's documentation.
This package has gone through several iterations, and was heavily influenced and borrows from Hadley Wickham's staticdocs (now pkgdown) package.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.