SkillTrust

← All skills

r-testthat

100 / 100 · Low risk

Fine to try.

By posit-dev/skills (GitHub) · coding · 564 stars · scanned at commit 9519594

Best practices for writing R package tests with testthat version 3+. Use this skill when writing or organizing tests for an R package or when improving existing tests that use testthat. It covers test structure and expectations, self-sufficient test design, proper cleanup with withr, fixtures, mocking external dependencies, snapshot testing, and BDD-style describe/it patterns.

Works with any agent that supports SKILL.md skills.

What this skill can do

We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'r-testthat' ] || [ -L ~/.agents/skills/'r-testthat' ]; then echo 'A skill folder named r-testthat already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/posit-dev/skills' "$d" && git -C "$d" checkout --quiet '951959403f4ecc9d0274adf35538fc67153b6f31' -- 'r-lib/r-testthat' && mkdir -p ~/.agents/skills && cp -R "$d"/'r-lib/r-testthat' ~/.agents/skills/'r-testthat' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'r-testthat' ~/.claude/skills/'r-testthat' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for posit-dev/skills shows the score of its lowest-scoring skill.

SkillTrust badge for posit-dev/skills

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/posit-dev/skills.svg)](https://zalavijaysinh.github.io/skilltrust/repos/posit-dev/skills/)

Score history

DateVersionScore
2026-11-139519594100
2026-11-0845685aa100
2026-11-0745685aa100