/research-core:r-renvfrom research-core
Manages R package environments with renv: restore, snapshot, install, and troubleshoot lockfile sync issues in data science projects.
Ships in research-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use the R version declared by the project and recorded in its environment or producing-state evidence. An optional site profile may describe how that runtime is made available. Do not infer a host path, processor architecture, editor, module, or version-manager command.
Before restoring packages, confirm the selected executable:
Rscript --version
Rscript -e 'cat(R.version.string, "\n")'
When the project uses a version manager or editor-specific runtime setting, configure it through that tool's documented project workflow and keep machine-local paths out of shared project files.
Most R projects use renv for reproducible package management.
renv::status() # Check sync status
renv::restore() # Install packages from lockfile
renv::snapshot() # Record current packages to lockfile
renv::install("pkg") # Install a package
renv::update() # Update all packages
.Rprofile when R starts in the project directoryrenv::status() to see detailsrenv::restore()renv::snapshot() then commit renv.lock to gitCommit: renv.lock, renv/activate.R, .Rprofile
Ignore: renv/library/, renv/staging/, renv/local/
Bioconductor packages have coordinated releases tied to R versions.
install.packages("BiocManager")
BiocManager::install("DESeq2")
BiocManager::install(c("limma", "edgeR", "tximport"))
renv::snapshot() # Always snapshot after installing
With renv, you can also use:
renv::install("bioc::DESeq2")
Bioconductor releases are tied to R versions and the mapping changes over time. Inspect the active project instead of relying on a copied version table:
R.version.string
BiocManager::version()
renv::status()
Resolve mismatches against the project's lockfile and the current Bioconductor release guidance for that R version. Treat a release change as an environment change and review it before snapshotting.
→ Run renv::status() to see details. Run renv::restore() to sync, or renv::snapshot() if you've installed new packages.
→ Try renv::install("package", rebuild = TRUE)
→ Reset only when explicitly requested after diagnosing the problem. Preserve renv.lock, the
project library and unrelated .Rprofile content before changing activation.
renv::deactivate(clean = FALSE) removes renv's autoloader while retaining the lockfile/library
(official documentation). Do not delete
renv/ or the whole .Rprofile as routine troubleshooting; review reinitialization against the
existing lockfile before proceeding.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub musserlab/lab-claude-skills --plugin research-core25 skills in this plugin
/analysis-distillationDistill exploratory or complex scientific analysis into the smallest readable workflow that supports a phase review, paper, report, or durable handoff. Use when a settled phase result needs consolidation, or selected results need publication-ready code, a newcomer reproduction route, or a maintained analysis path. Do not use to choose an unresolved scientific method, perform ordinary session cleanup, or rewrite a working pipeline merely to impose a preferred structure.
/analysis-review-dashboardBuild or refresh a browser dashboard for independently reviewing a scientific analysis, from a short workflow to a branching pipeline. Organize existing evidence into a pipeline overview, scientific task pages and complete script reviews with file and object previews. Use when the user asks for an analysis review dashboard or linked pipeline/task/script pages. Do not use for a task-status dashboard, source-code distillation alone, or a script audit alone.
/audit-projectReview project documentation, authority, navigation and workflow drift; propose careful, reversible consolidation when useful. Use for project health or documentation reconciliation, not script correctness (audit-script) or skill quality (a separate maintainer audit; use plugin-feedback for a student plugin report).
/audit-scriptAudit a scientific or data-analysis script, connected workflow, or publication producer for bugs, analytical validity, data handling, reproducibility, outputs, and readability. Use when reviewing code, preparing a substantial phase for scientific discussion, checking collaborator code, or investigating whether retained results can be trusted. Do not use for a quick question about one line or for project-document drift (use audit-project).
/cleanup-scriptsConsolidate scratch or exploratory code from the current work when its retained role is known. Use when the user asks to clean up scripts, when session-owned scratch files need disposition, or when a changed workflow has unclear helper/output ownership. Selecting and simplifying a complete publication or durable handoff path needs its own agreed scope. Do not use as a mandatory project-wide closeout scan or to enforce numbering, lifecycle labels, or one script format.
/conda-envConda environment activation for Python commands. Use when running Python scripts, pip, or conda-dependent tools.