powered by
Generate roxygen2 documentation for R functions.
goose_document(func, style = "roxygen2", examples = TRUE)
Character string with documentation
Function object or function name
Character, documentation style ("roxygen2", "detailed", "minimal")
Logical, whether to generate examples
if (FALSE) { my_func <- function(x, y, method = "pearson") { cor(x, y, method = method) } docs <- goose_document(my_func) cat(docs) }
Run the code above in your browser using DataLab