
r-docs-guide
Auto-triggered Skills for querying R package documentation via WebFetch. Covers CRAN, tidyverse, Shiny, and general R packages.
- version
- 1.0.0
Install
/plugin install r-docs-guide@psychquant-claude-pluginsRun it inside Claude Code after adding the marketplace with /plugin marketplace add PsychQuant/psychquant-claude-plugins.
Contents
Discovered from sourceSkills 4
CRAN Package Discovery Guide
Find and compare R packages via WebFetch.
When to Use
When the user needs to find the right R package for a task, or wants to explore what's available.
Execution Steps (IMPORTANT!)
You MUST WebFetch official sources - never recommend packages from memory alone!
Step 1: Identify the domain or task
The user's query: $ARGUMENTS
Step 2: WebFetch relevant sources
For domain exploration — CRAN Task Views:
| Domain | URL |
|---|---|
| Bayesian | https://cran.r-project.org/web/views/Bayesian.html |
| ClinicalTrials | https://cran.r-project.org/web/views/ClinicalTrials.html |
| Cluster | https://cran.r-project.org/web/views/Cluster.html |
| Databases | https://cran.r-project.org/web/views/Databases.html |
| Econometrics | https://cran.r-project.org/web/views/Econometrics.html |
| ExperimentalDesign | https://cran.r-project.org/web/views/ExperimentalDesign.html |
| Finance | https://cran.r-project.org/web/views/Finance.html |
| HighPerformanceComputing | https://cran.r-project.org/web/views/HighPerformanceComputing.html |
| MachineLearning | https://cran.r-project.org/web/views/MachineLearning.html |
| MetaAnalysis | https://cran.r-project.org/web/views/MetaAnalysis.html |
| MixedModels | https://cran.r-project.org/web/views/MixedModels.html |
| NaturalLanguageProcessing | https://cran.r-project.org/web/views/NaturalLanguageProcessing.html |
| Psychometrics | https://cran.r-project.org/web/views/Psychometrics.html |
| ReproducibleResearch | https://cran.r-project.org/web/views/ReproducibleResearch.html |
| Spatial | https://cran.r-project.org/web/views/Spatial.html |
| Survival | https://cran.r-project.org/web/views/Survival.html |
| TimeSeries | https://cran.r-project.org/web/views/TimeSeries.html |
| WebTechnologies | https://cran.r-project.org/web/views/WebTechnologies.html |
Full list of Task Views:
https://cran.r-project.org/web/views/
For a specific package:
https://cran.r-project.org/web/packages/{pkg}/index.html
For package search:
https://www.rdocumentation.org/search?q={query}https://rdrr.io/search?q={query}
Step 3: Present recommendations
## Recommended Packages for {Task}
| Package | Description | Downloads | Maintained |
|---------|-------------|-----------|------------|
| {pkg1} | ... | ... | ... |
| {pkg2} | ... | ... | ... |
### Recommendation
[Which package to use and why]
### Installation
```r
install.packages(c("{pkg1}", "{pkg2}"))
## Important Reminders
- **Always WebFetch** CRAN or Task Views - don't recommend packages from memory
- Check if packages are actively maintained (last update date)
- Mention if a package is part of tidyverse or has known alternatives
R Docs Guide
Query R package documentation directly via WebFetch across multiple sources.
When to Use
When the user asks about R packages, functions, or needs help with R programming tasks.
Execution Steps (IMPORTANT!)
You MUST WebFetch official documentation - never answer from memory!
Step 1: Identify the package or topic
The user's query: $ARGUMENTS
Step 2: Determine the best documentation source
| 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 |
Step 3: WebFetch the documentation
For a specific package, fetch in parallel:
- CRAN page:
https://cran.r-project.org/web/packages/{pkg}/index.html - RDocumentation:
https://www.rdocumentation.org/packages/{pkg} - If tidyverse:
https://{pkg}.tidyverse.org/reference/index.html
For a topic/task (e.g., "how to do time series in R"):
- CRAN Task View:
https://cran.r-project.org/web/views/{relevant-view}.html - RDocumentation search:
https://www.rdocumentation.org/search?q={query}
For a specific function:
https://www.rdocumentation.org/packages/{pkg}/topics/{function}- Or
https://rdrr.io/cran/{pkg}/man/{function}.html
Step 4: Present findings
## {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}")
Quick Example
library({pkg})
# example code
Related Packages
- [alternatives or companions]
## 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
Shiny Docs Guide
Query Shiny framework documentation directly via WebFetch.
When to Use
When the user builds or debugs Shiny applications.
Execution Steps (IMPORTANT!)
You MUST WebFetch official documentation - never answer from memory!
Step 1: Identify the topic
The user's query: $ARGUMENTS
Step 2: WebFetch from the correct source
Shiny documentation sources:
| Topic | URL |
|---|---|
| Shiny R Reference | https://shiny.posit.co/r/reference/shiny/latest/ |
| Shiny R Articles | https://shiny.posit.co/r/articles/ |
| Shiny R Gallery | https://shiny.posit.co/r/gallery/ |
| bslib (Bootstrap) | https://rstudio.github.io/bslib/reference/index.html |
| shinydashboard | https://rstudio.github.io/shinydashboard/ |
| shinyWidgets | https://dreamrs.github.io/shinyWidgets/reference/index.html |
| shinytest2 | https://rstudio.github.io/shinytest2/reference/index.html |
| Mastering Shiny (book) | https://mastering-shiny.org/ |
| DT (DataTables) | https://rstudio.github.io/DT/ |
| plotly for R | https://plotly-r.com/ |
By topic:
| Topic | URL |
|---|---|
| Reactivity | https://shiny.posit.co/r/articles/build/reactivity-overview/ |
| Modules | https://shiny.posit.co/r/articles/improve/modules/ |
| Layout Guide | https://shiny.posit.co/r/articles/build/layout-guide/ |
| Dynamic UI | https://shiny.posit.co/r/articles/build/dynamic-ui/ |
| Deployment | https://shiny.posit.co/r/articles/share/ |
| Performance | https://shiny.posit.co/r/articles/improve/performance/ |
| Testing | https://rstudio.github.io/shinytest2/articles/shinytest2.html |
Step 3: Present findings
Include working code examples with both ui and server components.
Important Reminders
- Always WebFetch - Shiny API changes between versions
- Always show both
uiandserverparts in examples - For deployment questions, check
https://shiny.posit.co/r/articles/share/
Tidyverse Docs Guide
Query tidyverse package documentation directly via WebFetch.
When to Use
When the user works with any tidyverse package or asks about tidy data workflows.
Execution Steps (IMPORTANT!)
You MUST WebFetch official documentation - never answer from memory!
Step 1: Identify the package and function
The user's query: $ARGUMENTS
Step 2: WebFetch from the correct pkgdown site
Tidyverse package sites:
| Package | Reference URL | Cheatsheet |
|---|---|---|
| dplyr | https://dplyr.tidyverse.org/reference/index.html | https://dplyr.tidyverse.org/articles/dplyr.html |
| ggplot2 | https://ggplot2.tidyverse.org/reference/index.html | https://ggplot2.tidyverse.org/articles/ggplot2.html |
| tidyr | https://tidyr.tidyverse.org/reference/index.html | https://tidyr.tidyverse.org/articles/tidy-data.html |
| purrr | https://purrr.tidyverse.org/reference/index.html | https://purrr.tidyverse.org/articles/base.html |
| readr | https://readr.tidyverse.org/reference/index.html | — |
| stringr | https://stringr.tidyverse.org/reference/index.html | — |
| forcats | https://forcats.tidyverse.org/reference/index.html | — |
| tibble | https://tibble.tidyverse.org/reference/index.html | — |
| lubridate | https://lubridate.tidyverse.org/reference/index.html | — |
| readxl | https://readxl.tidyverse.org/reference/index.html | — |
| haven | https://haven.tidyverse.org/reference/index.html | — |
| glue | https://glue.tidyverse.org/reference/index.html | — |
For a specific function:
https://{pkg}.tidyverse.org/reference/{function}.html
For articles/vignettes:
https://{pkg}.tidyverse.org/articles/
Step 3: Present findings
Include: function signature, parameters, return value, and a working example from the docs.
Important Reminders
- Always WebFetch the pkgdown site - never answer from memory
- tidyverse functions are well-documented with examples; always include them
- If a function doesn't exist on the pkgdown site, fall back to
https://www.rdocumentation.org/packages/{pkg}/topics/{function}
Sponsors
Details
- Marketplace
- PsychQuant/psychquant-claude-plugins
- Source
- plugins/r-docs-guide
- Author
- Che Cheng
- Category
- Development
More from PsychQuant/psychquant-claude-plugins
All 42- r-shiny-debuggerv1.3.0
- safari-browserv2.11.0
- tool-finderv1.0.0
- agent-cacherv0.1.0
- ai-docs-guidev1.4.0
- archive-firstv2.2.0
- batch-ocrv0.1.0
- bestocrv0.1.0
- che-apple-devv1.2.0
- che-apple-mail-mcpv2.0.1
- che-apple-notes-mcpv0.2.1
- che-archive-linesv1.0.0
- che-axiom-systemsv1.0.0
- che-biblatex-mcpv0.4.0
- che-bot-toolkitv0.1.0
- che-creative-suitev0.1.0
- che-dropbox-ignorev2.1.0
- che-duckdb-mcpv2.3.0
- che-ical-mcpv1.7.0
- che-latex-mcpv0.7.0
- che-pixel-mcpv0.1.0
- che-svg-mcpv0.1.0
- che-telegram-mcpv1.0.0
- che-things-mcpv1.7.1