Description Usage Arguments Details Value Note
View source: R/doxygen_tools.R
Creates an R Markdown wrapper for the doxygen documentation, so that it
can be viewed from within R with a call to vignette()
.
1 | doxy_vignette(pkg = ".", index = "html", viname, vientry)
|
pkg |
A string with the path to any subfolder of the R package root
directory. Default: |
index |
A string with the path relative to |
viname |
A string giving the name of the |
vientry |
A character string specifying the vignette Index Entry to use. Default: "pkgName C++ library documentation". |
This function creates the file vignettes/viname.Rmd
in the package
root folder, containing the necessary meta-data for viewing the Doxygen HTML documentation
from within R with a call to vignette()
.
NULL
The call to vignette()
will *only* open HTML files stored in the doc
subfolder of an installed package. Therefore, a natural location for the doxygen documentation
(doxydoc) is in inst/doc/doxygen
. However, the latest version of devtools
incontrovertibly deletes inst/doc
during the build/install process. Due to the
ubiquitous usage of devtools among R package developers, the doxydoc is stored here
in inst/doxygen
, and during the build process, moved (or technically, copied and
source added to .Rbuildignore
) via a vignettes/Makefile
. Packages with their
own such Makefile
will not have it overwritten, and developers may view the default
Makefile
provided by rdoxygen with the call
1 2 | cat(readLines(system.file("sys", "Makefile",
package = "rdoxygen")), sep = "\n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.