r-package-check
一站式 R 包发布门控,直击 CRAN 问题。
会运行包内测试和代码,存在执行不可信代码的风险。
执行 R 包发布前的完整检查:更新文档、跑测试、R CMD check 并按 CRAN 政策逐项复核。
在准备把 R 包上 CRAN 之前跑一套完整把关:重生成文档、执行测试、跑 R CMD check --as-cran,并把每个 ERROR/WARNING/NOTE 按 CRAN 政策逐项复核和分类。会产出检查报告和 CRAN 提交清单,适合提交前或想确认包是否“CRAN-ready”时使用。还会检查 R CMD check 看不到的问题,做更细致的 triage。
▸ 展开 SKILL.md 英文原文
Run the full R package release gate — regenerate docs, run the test suite, run R CMD check --as-cran, and triage every ERROR / WARNING / NOTE against CRAN policy before a release or submission. Use when the user says "check my R package", "R CMD check", "is this package CRAN-ready", "run devtools::check", "prepare for CRAN submission", or points at a directory containing a DESCRIPTION file. Produces a check report + CRAN-submission checklist in `quality_reports/`.
帮我安装这个 skill:https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/r-package-check/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/r-package-check/SKILL.md"# `/r-package-check` — R Package Release Gate Run the document → test → check → triage pipeline that decides whether an R package is releasable, then review the source for the issues `R CMD check` cannot see. **Input:** `$ARGUMENTS` — the package root (a directory containing `DESCRIPTION`). If blank, autodetect by searching upward/within the working directory for `DESCRIPTION`. --- ## Constraints - **Follow [`.claude/rules/r-package-conventions.md`](../../rules/r-package-conventions.md)** — the CRAN-readiness bar (0 errors, 0 warnings, explained notes) is the gate. - **Treat `man/` and `NAMESPACE` as generated** — regenerate with `devtools::document()`; never hand-edit them. - **Run the