pharmaverse-anca-r-code-instructions.ocm.json json Copy{
"ocm": "1",
"id": "pharmaverse-anca-r-code-instructions",
"kind": "skill",
"name": "r-code",
"description": "See `AGENTS.md` sections \"R Package Code\" and \"Code Principles\" for full conventions.",
"publisher": "pharmaverse",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"See `AGENTS.md` sections \"R Package Code\" and \"Code Principles\" for full conventions."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/pharmaverse/aNCA",
"path": ".github/instructions/r-code.instructions.md",
"ref": "1c8596fcc220e867b911908f82518e312ecacb05",
"url": "https://github.com/pharmaverse/aNCA/blob/1c8596fcc220e867b911908f82518e312ecacb05/.github/instructions/r-code.instructions.md",
"key": "pharmaverse/aNCA/.github/instructions/r-code.instructions.md"
},
"applies_to": "R/**/*.R"
},
"instructions": "# R Package Code\n\nSee `AGENTS.md` sections \"R Package Code\" and \"Code Principles\" for full conventions.\n\n## Path-specific reminders\n\n- One main function per file, name matches function\n- Imports packages: use `@importFrom` in roxygen, call directly. Suggests packages: use `pkg::fun()` inline\n- When adding `@importFrom`, also update `NAMESPACE` and check `DESCRIPTION` Imports\n- All exported functions need `@param`, `@returns`, `@export`\n- NSE column references go in `R/zzz.R` (alphabetically sorted, no duplicates)\n- Run `devtools::document()` after modifying roxygen comments",
"cost": {
"context_tokens": 145
}
}