moai-lang-r

Enforce R 4.4+ best practices with testthat 3.2 and lintr 3.2 quality gates.

1|Updated Jul 28, 2025
One-click install
npx skills add https://github.com/kivo360/quickhooks --skill moai-lang-r-kivo360
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-r
Source: https://github.com/kivo360/quickhooks/tree/main/.claude/skills/moai-lang-r
Command: npx skills add https://github.com/kivo360/quickhooks --skill moai-lang-r-kivo360

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces modern R development practices, boosting test coverage, code quality, and data‑analysis workflows to reduce debugging time and improve reliability.

Core Features & Use Cases

  • Language Best Practices: Enforces R 4.4+ best practices with testthat 3.2 and lintr 3.2.
  • Quality Gates: Integrates TRUST 5 quality gates for robust analytics pipelines.
  • Migration Guidance: Provides migration guidance and checkpoints for data analysis projects.

Quick Start

Use the moai-lang-r skill to scaffold a TDD-ready test suite for a new R package and validate it against TRUST 5 quality gates.

Frequently Asked Questions about moai-lang-r

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce R best practices and quality gates in my data analysis project?

R best practices enforcement integrates testthat 3.2 for automated testing and lintr 3.2 for code linting, applying TRUST 5 quality gates to validate code quality, test coverage, and compliance across R 4.4+ projects. This catches issues early and ensures consistent standards throughout development.

Can I use testthat and lintr together for automated R code review?

Yes. testthat 3.2 and lintr 3.2 work together to automate code review workflows—testthat runs unit tests to validate logic, while lintr checks style and potential bugs. Combined, they enforce quality gates and reduce manual review overhead.

What's the best way to set up test-driven development for an R package?

TDD-ready R packages scaffold with testthat 3.2 test suites, establishing test structure before implementation. This approach accelerates development, improves reliability, and integrates seamlessly with TRUST 5 quality gates for modern data analysis workflows.

Does R 4.4 support the latest testthat and lintr versions for my project?

R 4.4+ fully supports testthat 3.2 and lintr 3.2. These versions provide modern testing and linting capabilities optimized for current R development, including enhanced quality gate integration and updated best practices for data analysis.

How do I migrate existing R code to meet TRUST 5 quality standards?

Migration guidance identifies checkpoints and refactoring steps to align R projects with TRUST 5 compliance. The process validates test coverage, code quality via lintr, and public API documentation, ensuring analytics pipelines meet modern reliability requirements.