Use create_book
with clean = TRUE
to remove
example Rmd files. You will use your vignettes to fill the book, you do
not need example files. Only “index.Rmd” file is kept.
Function build_book()
will copy your vignettes in the
book directory and build books (html and/or pdf).
aa-vignette-number-one
,
ab-vignette-number-two
. Note that vignettes names can
not start with a number for package build.# Title 1
) and be followed by titles with lower
levelsYou may want to send a PDF along with your package archive to targeted people, so that they know what is inside, who developed it, how to install it and where to find the documentation. A short version of the book above, without vignettes.
To do so, you need to fill the index.Rmd file with necessary information and create the book only with index and references.
Function open_guide_function()
adds function
open_guide()
inside your package that will open the
userguide on demand.
Users of your package (pkg
) can now have access to the
books using:
Add these in your documentation and/or add a message when loading the package with this function inside your package: