submit-to-cran
정보
이 Claude Skill은 CRAN에 R 패키지를 제출하는 전체 워크플로우를 자동화하며, 사전 제출 검사와 필요한 `cran-comments.md` 파일 준비를 포함합니다. 초기 릴리스, 기존 패키지 업데이트, 리뷰어 피드백 후 재제출을 모두 처리합니다. 개발자는 패키지가 로컬 검사에서 오류와 경고 없이 통과하고 버전 번호가 업데이트된 경우에 사용해야 합니다.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/submit-to-cranClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Submit to CRAN
Full CRAN sub workflow: pre-flight checks → submission.
Use When
- Pkg ready for initial CRAN release
- Sub updated ver of existing CRAN pkg
- Re-sub after CRAN reviewer feedback
In
- Required: R pkg passing local
R CMD checkw/ 0 err + 0 warn - Required: Updated ver # in DESCRIPTION
- Required: Updated NEWS.md w/ ver changes
- Optional: Prev CRAN reviewer comments (re-subs)
Do
Step 1: Ver + NEWS Check
Verify DESCRIPTION ver:
desc::desc_get_version()
Verify NEWS.md has entry. Summarize user-facing changes.
Got: Ver follows semver. NEWS.md has matching entry.
If err: Update ver usethis::use_version() (major/minor/patch). Add NEWS.md entry.
Step 2: Local R CMD Check
devtools::check()
Got: 0 err, 0 warn, 0 notes (1 note OK new sub: "New submission").
If err: Fix all err+warn before. Read log <pkg>.Rcheck/00check.log. Notes → explain in cran-comments.md.
Step 3: Spell Check
devtools::spell_check()
Add legit words → inst/WORDLIST (one per line, sorted).
Got: No unexpected misspellings. All flagged corrected | added.
If err: Fix genuine misspellings. Tech terms → inst/WORDLIST sorted.
Step 4: URL Check
urlchecker::url_check()
Got: All URLs HTTP 200. No broken/redirected.
If err: Replace broken. \doi{} for DOI links not raw URLs. Remove dead links.
Step 5: Win-Builder
devtools::check_win_devel()
devtools::check_win_release()
Wait email (~15-30 min).
Got: 0 err + 0 warn on both release + devel. Email in 15-30 min.
If err: Address platform-specific. Common: diff compiler warns, missing sys deps, path sep diffs. Fix local + re-sub.
Step 6: R-hub Check
rhub::rhub_check()
Multi-platform (Ubuntu, Windows, macOS).
Got: All platforms pass 0 err + 0 warn.
If err: Specific platform fails → check R-hub log. Use testthat::skip_on_os() | conditional code for platform-dep behavior.
Step 7: Prep cran-comments.md
Create | update in pkg root:
## R CMD check results
0 errors | 0 warnings | 1 note
* This is a new release.
## Test environments
* local: Windows 11, R 4.5.0
* win-builder: R-release, R-devel
* R-hub: ubuntu-latest (R-release), windows-latest (R-release), macos-latest (R-release)
## Downstream dependencies
There are currently no downstream dependencies for this package.
Updates → include:
- What changed (brief)
- Response to prev reviewer feedback
- Reverse dep check results if applicable
Got: Accurate summary across all envs, explains notes.
If err: Results differ across platforms → doc all variations. CRAN reviewers check vs own tests.
Step 8: Final Pre-flight
# One last check
devtools::check()
# Verify the built tarball
devtools::build()
Got: Final check passes clean. .tar.gz built in parent dir.
If err: Last-min issue → fix + re-run all from Step 2. Don't sub w/ known fails.
Step 9: Submit
devtools::release()
Interactive checks + sub. Answer honest.
Alt: manual at https://cran.r-project.org/submit.html, upload tarball.
Got: Confirmation email from CRAN in min. Click link → finalize.
If err: Check email for rejection reasons. Common: examples too slow, missing \value tags, non-portable code. Fix + re-sub, note in cran-comments.md what changed.
Step 10: Post-Submission
Post-acceptance:
# Tag the release
usethis::use_github_release()
# Bump to development version
usethis::use_dev_version()
Got: GitHub release created w/ accepted ver tag. DESCRIPTION bumped to dev (x.y.z.9000).
If err: GH release fails → manual gh release create. CRAN acceptance delayed → wait email before tag.
Check
-
R CMD check0 err + 0 warn local - Win-builder passes (release + devel)
- R-hub passes all platforms
-
cran-comments.mdaccurate - All URLs valid
- No spelling errors
- Ver # correct + incremented
- NEWS.md current
- DESCRIPTION metadata complete + accurate
Traps
- Examples too slow: Wrap expensive in
\donttest{}. CRAN enforces time limits. - Non-std file/dir names: Avoid files triggering CRAN notes (check
.Rbuildignore) - Missing
\valuein docs: All exported fns need@returntag - Vignette build fails: Vignettes must build in clean env w/o your
.Renviron - DESCRIPTION Title: Title Case, no period at end, no "A Package for..."
- Forget rev dep checks: Updates → run
revdepcheck::revdep_check()
Examples
# Full pre-submission workflow
devtools::spell_check()
urlchecker::url_check()
devtools::check()
devtools::check_win_devel()
rhub::rhub_check()
# Wait for results...
devtools::release()
→
release-package-version— ver bumping + git taggingwrite-roxygen-docs— docs meet CRAN standardssetup-github-actions-ci— CI mirroring CRAN expectationsbuild-pkgdown-site— docs site for accepted pkgs
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
