From r-docs-guide
Query R package documentation across all ecosystems at once (CRAN, tidyverse, Bioconductor). Use this skill when: - Looking up R package usage, functions, or vignettes - Comparing packages for the same task (e.g., data.table vs dplyr) - User says "R docs", "how to use this R package", or asks about R functions - Need to find the right R package for a task
How this skill is triggered — by the user, by Claude, or both
Slash command
/r-docs-guide:r-docs-guideThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Query R package documentation directly via WebFetch across multiple sources.
Query R package documentation directly via WebFetch across multiple sources.
When the user asks about R packages, functions, or needs help with R programming tasks.
You MUST WebFetch official documentation - never answer from memory!
The user's query: $ARGUMENTS
| Source | URL Pattern | Best For |
|---|---|---|
| CRAN Reference | https://cran.r-project.org/web/packages/{pkg}/index.html | Package overview, links |
| CRAN Manual (PDF) | https://cran.r-project.org/web/packages/{pkg}/{pkg}.pdf | Full function reference |
| Vignettes | https://cran.r-project.org/web/packages/{pkg}/vignettes/ | Tutorials, guides |
| RDocumentation | https://www.rdocumentation.org/packages/{pkg} | Searchable docs |
| tidyverse pkgdown | https://{pkg}.tidyverse.org/ | tidyverse packages |
| Shiny | https://shiny.posit.co/r/reference/ | Shiny framework |
| Bioconductor | https://bioconductor.org/packages/release/bioc/html/{pkg}.html | Bioinformatics |
| R Documentation | https://stat.ethz.ch/R-manual/R-devel/library/{pkg}/html/00Index.html | Base R packages |
| CRAN Task Views | https://cran.r-project.org/web/views/{topic}.html | Find packages by domain |
| rdrr.io | https://rdrr.io/cran/{pkg}/ | Quick function lookup |
For a specific package, fetch in parallel:
https://cran.r-project.org/web/packages/{pkg}/index.htmlhttps://www.rdocumentation.org/packages/{pkg}https://{pkg}.tidyverse.org/reference/index.htmlFor a topic/task (e.g., "how to do time series in R"):
https://cran.r-project.org/web/views/{relevant-view}.htmlhttps://www.rdocumentation.org/search?q={query}For a specific function:
https://www.rdocumentation.org/packages/{pkg}/topics/{function}https://rdrr.io/cran/{pkg}/man/{function}.html## {Package Name}
**Version:** x.y.z | **CRAN:** [link] | **Docs:** [link]
### Description
[What the package does]
### Key Functions
| Function | Description |
|----------|-------------|
| `func()` | ... |
### Installation
```r
install.packages("{pkg}")
library({pkg})
# example code
## Common CRAN Task Views
| Domain | Task View URL |
|--------|--------------|
| Time Series | `https://cran.r-project.org/web/views/TimeSeries.html` |
| Machine Learning | `https://cran.r-project.org/web/views/MachineLearning.html` |
| Bayesian | `https://cran.r-project.org/web/views/Bayesian.html` |
| Spatial | `https://cran.r-project.org/web/views/Spatial.html` |
| Finance | `https://cran.r-project.org/web/views/Finance.html` |
| Clinical Trials | `https://cran.r-project.org/web/views/ClinicalTrials.html` |
| Psychometrics | `https://cran.r-project.org/web/views/Psychometrics.html` |
| Survival | `https://cran.r-project.org/web/views/Survival.html` |
| Web Technologies | `https://cran.r-project.org/web/views/WebTechnologies.html` |
| Reproducible Research | `https://cran.r-project.org/web/views/ReproducibleResearch.html` |
## Important Reminders
- **Always WebFetch** - never answer R package questions from memory
- **Check version** - R packages update frequently, always get current docs
- **Vignettes first** - vignettes are often more useful than function reference
- If a package is not on CRAN, check Bioconductor or GitHub
npx claudepluginhub psychquant/psychquant-claude-plugins --plugin r-docs-guideRecommends Bioconductor packages, suggests container-first workflows, inspects local R/BiocManager setup, and generates reproducible starter R code for bioinformatics tasks.
Use when code loads or uses btw (library(btw), btw::), providing R session context to LLMs, registering tools for ellmer chat, or copying R object descriptions to clipboard
Creates R package vignettes using R Markdown or Quarto. Covers setup, YAML configuration, code chunk options, building, testing, and CRAN requirements.