| goose_document | R Documentation |
Generate roxygen2 documentation for R functions.
goose_document(func, style = "roxygen2", examples = TRUE)
func |
Function object or function name |
style |
Character, documentation style ("roxygen2", "detailed", "minimal") |
examples |
Logical, whether to generate examples |
Character string with documentation
## Not run:
my_func <- function(x, y, method = "pearson") {
cor(x, y, method = method)
}
docs <- goose_document(my_func)
cat(docs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.