
Get a package's full reference documentation as a single string
Source:R/build_reference.R
get_documentation.RdReturns the same Markdown content that build_reference() writes to
_full_reference.md - every topic rendered and concatenated into one
string - without writing anything to disk. Meant for programmatic
consumption, e.g. an LLM agent that wants a package's complete
reference injected directly into its context in one call.
Arguments
- package
As in
build_reference().- include_private
If
TRUE, documented topics that aren't part of the package's public API are included too - seebuild_reference(). Defaults toFALSEhere (unlikebuild_reference()'sTRUE), since the primary use case - handing a package's reference to an LLM agent as context - usually wants the public API only.