一键导入
cran-release-preflight
Use when preparing an R package submission or resubmission to CRAN, including running CRAN-style checks and drafting cran-comments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when preparing an R package submission or resubmission to CRAN, including running CRAN-style checks and drafting cran-comments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cran-release-preflight |
| description | Use when preparing an R package submission or resubmission to CRAN, including running CRAN-style checks and drafting cran-comments. |
Ensure the package passes a CRAN-style check and that the submission metadata (DESCRIPTION, NEWS, cran-comments) is complete.
Confirm package metadata is accurate:
Title is in title case and does not include the word "package".
Description is informative and does not repeat the package name.
URLs and BugReports point to the correct repository.
Ensure versioning is correct:
Build a source tarball:
R CMD build . from the package root.Run CRAN-style checks on the tarball:
Run R CMD check --as-cran <tarball>.
Prefer running this with an R-devel toolchain when feasible.
Eliminate all ERRORs and WARNINGs.
Update NEWS and cran-comments:
Add bullet entries in NEWS describing user-visible changes.
Fill in cran-comments with test environments and the check summary.
Vignettes time out or require system dependencies.
Examples are non-deterministic (randomness without a fixed seed).
Missing documentation for exported objects.
Incorrect license declaration or missing LICENSE file.
When asked to "prepare a CRAN submission", produce:
A precise list of commands to run.
A table summarizing check results by platform (local, CI, external checks if any).
A draft cran-comments.md that includes any unavoidable notes and their justification.