moai-lang-r

Guides writing testthat-tested R scripts with lintr quality checks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/DevSkillsIT/Skills-Eye --skill moai-lang-r-devskillsit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-r
Source: https://github.com/DevSkillsIT/Skills-Eye/tree/main/.claude/skills/moai-lang-r
Command: npx skills add https://github.com/DevSkillsIT/Skills-Eye --skill moai-lang-r-devskillsit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes examples (resource) and references (resource) components.

What problem does it solve?

Ensuring high-quality, maintainable, and testable R code for data analysis can be challenging without adherence to best practices and modern tooling. This Skill guides you in building reliable R solutions.

Core Features & Use Cases

  • R 4.4+ Best Practices: Enforces modern R programming standards for clean, efficient, and reproducible data analysis.
  • Test-Driven Development (TDD): Integrates testthat 3.2 for robust unit testing and lintr 3.2 for automated code quality checks.
  • Quality Gates: Supports maintaining high test coverage (≥85%) and adhering to TRUST 5 principles for reliable and secure code.
  • Use Case: When developing a new data analysis script, use this Skill to guide you through writing tests first, then implementing the R code, and finally linting it to ensure high quality, maintainability, and adherence to best practices.

Quick Start

"I need to write an R script for data cleaning. Guide me on setting up a TDD workflow with testthat and lintr."