MCP HubMCP Hub
스킬 목록으로 돌아가기

submit-to-cran

pjt222
업데이트됨 2 days ago
3 조회
17
2
17
GitHub에서 보기
메타design

정보

이 스킬은 CRAN에 R 패키지를 제출하는 완전한 워크플로우를 제공하며, 초기 릴리스와 업데이트 모두를 처리합니다. 사전 제출 검사를 자동화하고 필요한 `cran-comments.md` 파일을 준비하며, 최종 제출 과정을 안내합니다. 패키지가 CRAN 릴리스 준비가 되었거나 검토자 피드백 후 재제출할 때 사용하세요.

빠른 설치

Claude Code

추천
기본
npx skills add pjt222/agent-almanac -a claude-code
플러그인 명령대체
/plugin add https://github.com/pjt222/agent-almanac
Git 클론대체
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/submit-to-cran

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Submit to CRAN

Execute full CRAN submission workflow from pre-flight checks through submission.

When Use

  • Package ready for initial CRAN release
  • Submitting updated version of existing CRAN package
  • Re-submitting after CRAN reviewer feedback

Inputs

  • Required: R package passing local R CMD check with 0 errors and 0 warnings
  • Required: Updated version number in DESCRIPTION
  • Required: Updated NEWS.md with changes for this version
  • Optional: Previous CRAN reviewer comments (for re-submissions)

Steps

Step 1: Version and NEWS Check

Verify DESCRIPTION has correct version:

desc::desc_get_version()

Verify NEWS.md has entry for this version. Entry should summarize user-facing changes.

Got: Version follows semantic versioning. NEWS.md has matching entry for this version.

If fail: Update version with usethis::use_version() (choose "major", "minor", or "patch"). Add NEWS.md entry summarizing user-facing changes.

Step 2: Local R CMD Check

devtools::check()

Got: 0 errors, 0 warnings, 0 notes (1 note acceptable for new submissions: "New submission").

If fail: Fix all errors and warnings before proceeding. Read check log at <pkg>.Rcheck/00check.log for details. Notes should be explained in cran-comments.md.

Step 3: Spell Check

devtools::spell_check()

Add legitimate words to inst/WORDLIST (one word per line, sorted alphabetical).

Got: No unexpected misspellings. All flagged words either corrected or added to inst/WORDLIST.

If fail: Fix genuine misspellings. Legitimate technical terms? Add to inst/WORDLIST (one word per line, alphabetical sorted).

Step 4: URL Check

urlchecker::url_check()

Got: All URLs return HTTP 200. No broken or redirected links.

If fail: Replace broken URLs. Use \doi{} for DOI links instead of raw URLs. Remove links to resources no longer exist.

Step 5: Win-Builder Checks

devtools::check_win_devel()
devtools::check_win_release()

Wait for email results (usual 15-30 minutes).

Got: 0 errors, 0 warnings on both Win-builder release and devel. Results arrive by email within 15-30 minutes.

If fail: Address platform-specific issues. Common causes: different compiler warnings, missing system dependencies, path separator differences. Fix local, re-submit to Win-builder.

Step 6: R-hub Check

rhub::rhub_check()

Checks on multiple platforms (Ubuntu, Windows, macOS).

Got: All platforms pass with 0 errors and 0 warnings.

If fail: Specific platform fails? Check R-hub build log for platform-specific errors. Use testthat::skip_on_os() or conditional code for platform-dependent behavior.

Step 7: Prepare cran-comments.md

Create or update cran-comments.md in package 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 any previous reviewer feedback
  • Reverse dependency check results if applicable

Got: cran-comments.md accurately summarizes check results across all test environments and explains any notes.

If fail: Check results differ across platforms? Document all variations. CRAN reviewers will check these claims against own tests.

Step 8: Final Pre-flight

# One last check
devtools::check()

# Verify the built tarball
devtools::build()

Got: Final devtools::check() passes clean. .tar.gz tarball built in parent directory.

If fail: Last-minute issue appears? Fix, re-run all checks from Step 2. Never submit with known failures.

Step 9: Submit

devtools::release()

Runs interactive checks and submits. Answer all questions honest.

Alternatively, submit manual at https://cran.r-project.org/submit.html by uploading tarball.

Got: Confirmation email from CRAN arrives within minutes. Click confirmation link to finalize submission.

If fail: Check email for rejection reasons. Common issues: examples too slow, missing \value tags, non-portable code. Fix issues, re-submit, note in cran-comments.md what changed.

Step 10: Post-Submission

After acceptance:

# Tag the release
usethis::use_github_release()

# Bump to development version
usethis::use_dev_version()

Got: GitHub release created with accepted version tag. DESCRIPTION bumped to development version (x.y.z.9000).

If fail: GitHub release fails? Create manual with gh release create. CRAN acceptance delayed? Wait for confirmation email before tagging.

Checks

  • R CMD check returns 0 errors, 0 warnings on local machine
  • Win-builder passes (release + devel)
  • R-hub passes on all tested platforms
  • cran-comments.md accurate describes check results
  • All URLs valid
  • No spelling errors
  • Version number correct and incremented
  • NEWS.md current
  • DESCRIPTION metadata complete and accurate

Pitfalls

  • Examples too slow: Wrap expensive examples in \donttest{}. CRAN enforces time limits.
  • Non-standard file/dir names: Avoid files that trigger CRAN notes (check .Rbuildignore)
  • Missing \value in docs: All exported functions need @return tag
  • Vignette build failures: Ensure vignettes build in clean environment without your .Renviron
  • DESCRIPTION Title format: Must be Title Case, no period at end, no "A Package for..."
  • Forget reverse dependency 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()

See Also

  • release-package-version - version bumping, git tagging
  • write-roxygen-docs - ensure documentation meets CRAN standards
  • setup-github-actions-ci - CI checks that mirror CRAN expectations
  • build-pkgdown-site - documentation site for accepted packages

GitHub 저장소

pjt222/agent-almanac
경로: i18n/caveman/skills/submit-to-cran
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

연관 스킬

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을 선택하십시오.

스킬 보기