Skills Plugins MCP Prompt Model 博客 我的中心

r-package-development

R package development with devtools, testthat, and roxygen2. Use when the user is working on an R package, running tests, writing documentation, or building package infrastructure.

DeepseekModel 官方收录技能 质量 优秀 · 78 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=posit-dev-skills-r-lib-r-package-development-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name r-package-development description R package development with devtools, testthat, and roxygen2. Use when the user is working on an R package, running tests, writing documentation, or building package infrastructure. metadata {"author":"Simon P. Couch (@simonpcouch)","version":"1.2"} R package development Key commands # 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 . Coding Always run air format . after generating code. Use the base pipe operator ( |> ) not the magrittr pipe ( %>% ). Use \() ... for single-line anonymous functions. For all other cases, use function() {...} . Testing Tests for R/{name}.R go in tests/testthat/test-{name}.R . All new code should have an accompanying test. If there are existing tests, place new tests next to similar existing tests. Strive to keep tests minimal with few comments. Avoid expect_true() and expect_false() in favour of a specific expectation which will give a better failure message. When testing errors and warnings, don't use expect_error() or expect_warning() . Instead, use expect_snapshot(error = TRUE) for errors and expect_snapshot() for warnings because these allow the user to review the full text of the output. Documentation Every user-facing function should be exported and have roxygen2 documentation. Wrap roxygen comments at 80 characters. Internal functions should not have roxygen documentation. Whenever you add a new (non-internal) documentation topic, also add the topic to _pkgdown.yml . Always re-document the package after changing a roxygen2 comment. Use pkgdown::check_pkgdown() to check that all topics are included in the reference index. NEWS.md Every user-facing change should be given a bullet in NEWS.md . Do not add bullets for small documentation changes or internal refactorings. Each bullet should briefly describe the change to the end user. If the change is related to a function, put the name of the function early in the bullet. If the bullet is related to a GitHub issue or pull request, reference it by number in parentheses before the final period: (#123). . Order bullets alphabetically by function name. Put all bullets that don't mention function names at the beginning.
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。