rlang-patterns

Community

Master rlang metaprogramming for tidy evaluation.

Authorab604
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Functions that use tidy evaluation can be hard to reason about; this Skill provides a clear set of rlang metaprogramming patterns to write safer, more expressive R code.

Core Features & Use Cases

  • Data-masking concepts that let expressions refer to data frame columns as variables, including forward arguments using {{ }} and the .data pronoun.
  • Injection operators such as !! and !!! to programmatically build and splice expressions for dynamic code generation.
  • Dynamic dots patterns and helpers to manage tidy evaluation across data pipelines, with explicit use of .data and .env to avoid collisions.

Quick Start

Example: define a small function that uses {{ var }} to forward an argument into a dplyr call, and access a column with .data[[var]] for explicit safety.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rlang-patterns
Download link: https://github.com/ab604/claude-code-r-skills/archive/main.zip#rlang-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.