소스 정보
- 저장소
- Morrison-Lab/ai-config
- 최근 소스 활동
- 2026년 8월 27일 04:45
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Morrison-Lab/ai-config --skill r-package-development명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | r-package-development |
| description | R package dev with devtools, testthat, and roxygen2. |
| user-invocable | true |
| allowed-tools | ["Read","Edit","Write","Bash"] |
| metadata | {"author":"Simon P. Couch (@simonpcouch)","version":"1.2"} |
# Run code in the package
Rscript -e "devtools::load_all(); code"
# Run all tests
Rscript -e "devtools::test()"
# Run all tests for files starting with {name}
Rscript -e "devtools::test(filter = '^{name}')"
# Run all tests for R/{name}.R
Rscript -e "devtools::test_active_file('R/{name}.R')"
# Run a single test "blah" for R/{name}.R
Rscript -e "devtools::test_active_file('R/{name}.R', desc = 'blah')"
# Redocument the package
Rscript -e "devtools::document()"
# Check pkgdown documentation
Rscript -e "pkgdown::check_pkgdown()"
# Check the package with R CMD check
Rscript -e "devtools::check()"
# Format code
air format .
air format . after generating code.|>) not the magrittr pipe (%>%).\() ... for single-line anonymous functions.
For all other cases, use function() {...}.For the full testthat API (fixtures, mocking, snapshots, BDD-style tests), see testing-r-packages.
Match the package's existing expect_error()/expect_warning() or snapshot-testing style where precedent exists.
On a fresh package with no precedent, follow testing-r-packages' preference for snapshot-based error/warning tests.
R/{name}.R go in tests/testthat/test-{name}.R.expect_true() and expect_false() in favour of a specific expectation which will give a better failure message.expect_snapshot(error = TRUE) for errors and expect_snapshot() for warnings, not expect_error() or expect_warning().
A snapshot lets the user review the full text of the output._pkgdown.yml.pkgdown::check_pkgdown() to check that all topics are included in the reference index.NEWS.mdThis is the tidyverse-style default.
When the package already has an established NEWS.md style, match that existing style instead --- see r-pkg-news, whose whole job is reading a package's precedent before drafting a new entry.
NEWS.md.
Do not add bullets for small documentation changes or internal refactorings.(#123)..This skill is a day-to-day dev-loop reference (load, test, document, format) with this author's own conventions. It does not replace, and does not cover:
r-pkg-check --- running and triaging devtools::check() output.r-pkg-cran-checklist --- the CRAN release mechanics (win-builder, revdep checks, devtools::release()).cran-extrachecks --- the ad-hoc/stylistic CRAN checklist (Title case, @return tags, URL hygiene) that devtools::check() doesn't catch on its own.r-pkg-news --- matching a package's existing NEWS.md style, which overrides this skill's own default above.testing-r-packages --- the full testthat API (fixtures, mocking, snapshots, BDD-style tests).
Match the package's existing expect_error()/expect_warning() or snapshot-testing style where precedent exists.
On a fresh package with no precedent, follow testing-r-packages' preference for snapshot-based error/warning tests, which agrees with this skill's own default above.