View source: R/parse_roxygen.R
scrape_roxygen | R Documentation |
valtools uses roxygen across multiple file types to provide documentation. this function provides the tooling necessary to scrape from the major file types that we use ( R, R test code, markdown, Rmarkdown) and provides a consistent output type to capture the information necessary to help high level functions make assumptions.
scrape_roxygen(file, ..., type = tools::file_ext(file))
file |
file to scrape roxygen block from |
... |
These dots are for future extensions and must be empty. |
type |
method of parse_roxygen to use if other that file extension |
a list of roxygen blocks found in the file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.