Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Morrison-Lab/ai-config --skill r-pkg-check명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | r-pkg-check |
| description | Run devtools::check() and triage. |
| user-invocable | true |
| allowed-tools | ["Read","Edit","Write","Bash"] |
Runs a full package check — the superset check that unit tests alone don't cover — and triages every NOTE, WARNING, and ERROR it reports before a release or CRAN submission.
Why this exists: devtools::test() only runs unit tests; it says
nothing about documentation completeness, example runnability, DESCRIPTION
metadata, or the CRAN-policy checks that R CMD check applies. A package
whose tests pass can still fail R CMD check on an undocumented argument, a
broken \dontrun{} example, or a non-portable file name — issues that only
surface by running the full check.
Before a release, before a CRAN submission, or whenever asked to check a
package end to end — not during ordinary iteration (use test for that).
Confirm this is an R package. Check that DESCRIPTION exists at the
repo root. If not, skip — this skill doesn't apply.
Run the same check CI runs:
Rscript -e 'devtools::check()'
Check this repo's own .github/workflows/ for an R CMD check-style
job first — if one pins specific flags (e.g. --as-cran,
--no-manual), run that exact invocation instead so local results match
CI. Absent such a workflow, devtools::check() is the default; add
args = "--as-cran" when preparing a CRAN submission specifically (see
r-pkg-cran-checklist).
devtools isn't installed:
Rscript -e 'install.packages("devtools")' then retry. If R isn't
available at all, fall back to step 5.Triage each NOTE, WARNING, and ERROR:
cran-comments.md entry (see r-pkg-cran-checklist) rather than
silently ignoring it.Re-run step 2 to confirm a clean check (0 errors, 0 warnings, and every remaining NOTE accounted for) before pushing or submitting.
If R isn't available, manually review the diff for the shapes
R CMD check usually flags: new exported functions without @param/
@return docs, examples that call network or interactive code without
\dontrun{}/\donttest{}, and new dependencies missing from
DESCRIPTION's Imports/Suggests.
test runs devtools::test() — unit tests only, for
ordinary iteration. This skill is the superset full check (docs,
examples, CRAN-policy NOTEs) to run before a release.r-pkg-spellcheck spellchecks
documentation and NEWS.md text — a narrower, faster check this skill
doesn't replace (spelling isn't part of R CMD check's own coverage).r-pkg-cran-checklist is the larger
submission checklist this skill's clean check is one step of.