Dump 'R' Package Source, Documentation, and Vignettes into One File
Cleanup Temporary Files
Combine Rd files into a single character vector. This function reads t...
Helper function to combine package vignettes
Extract code from an installed package using its namespace. This funct...
Helper function to extract code from package source files. This functi...
Extract R Source Code from a Package
Get Current rdocdump
Repository Options
Set rdocdump
Cache Path in the Current R Session
Set rdocdump
Repository Options
Dump Package Source, Documentationm and Vignettes into Plain Text
Resolve the path to a package directory or tarball
Dump source code, documentation and vignettes of an 'R' package into a single file. Supports installed packages, tar.gz archives, and package source directories. If the package is not installed, only its source is automatically downloaded from CRAN for processing. The output is a single plain text file or a character vector, which is useful to ingest complete package documentation and source into a large language model (LLM) or pass it further to other tools, such as 'ragnar' <https://github.com/tidyverse/ragnar> to create a Retrieval-Augmented Generation (RAG) workflow.
Useful links