moai-lang-r

Guide R 4.4+ development with testthat and lintr for testing and code quality.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensuring high-quality, maintainable, and reliable R code for data analysis and statistical modeling can be challenging. This Skill provides expert guidance on R 4.4+ best practices, integrating testthat for robust testing and lintr for code quality, helping you produce trustworthy and efficient R projects.

Core Features & Use Cases

  • R Best Practices: Enforces modern R coding standards, package management, and project organization for maintainability.
  • Test-Driven Development (TDD): Guides you in writing comprehensive unit tests with testthat to ensure code correctness and prevent regressions.
  • Code Quality & Linting: Integrates lintr to automatically check for style violations, potential errors, and adherence to coding conventions.
  • Use Case: When developing a new data analysis script in R, use this Skill to set up a TDD workflow: write a failing test, implement the R code, then run lintr to ensure code quality before committing, guaranteeing a robust and clean solution.

Quick Start

Set up a new R project, install testthat and lintr, and write a basic unit test for a data transformation function.