tidyverse-elegant-r

Enforces tidyverse coding style with explicit library loads and native pipes in R scripts.

3|21|Updated Sep 19, 2025
One-click install
npx skills add https://github.com/timothyfraser/dsai --skill tidyverse-elegant-r-timothyfraser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tidyverse-elegant-r
Source: https://github.com/timothyfraser/dsai/tree/main/.cursor/skills/tidyverse-elegant-r
Command: npx skills add https://github.com/timothyfraser/dsai --skill tidyverse-elegant-r-timothyfraser

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces a clean, modern tidyverse style in R code for the SYSEN5381 course repository, reducing boilerplate and ensuring consistent, readable scripts.

Core Features & Use Cases

  • Explicit library usage per file: avoid blanket library(tidyverse) and load only what you need.
  • Modern piping and syntax: prefer native |> over the older %>% and ensure explicit style choices per file.
  • Guidance for pattern use: provide templates for common tidyverse patterns (join_by, .by) and data-mask usage, with safe, predictable coding practices.

Quick Start

Edit a script to replace a default library(tidyverse) usage with explicit library calls and modern piping style.

Frequently Asked Questions about tidyverse-elegant-r

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

FAQPage Schema
How do I enforce modern tidyverse R coding style across my project?

To enforce modern tidyverse R coding style, replace blanket library(tidyverse) calls with explicit package loading per file and use the native |> pipe operator to ensure readable, consistent scripts.

Why use explicit library loading instead of library(tidyverse) in R scripts?

Explicit library loading in R scripts avoids the boilerplate of blanket library(tidyverse) calls by loading only the specific packages needed per file, ensuring safe and predictable coding practices.

Should I use the native R pipe |> or the magrittr pipe %>% for data analysis?

For data analysis, you should use the native R pipe |> over the older magrittr pipe %>%. This modern piping style ensures explicit, readable code choices per file.

What is the best way to apply join_by and .by patterns in tidyverse?

The best way to apply join_by and .by patterns in tidyverse is to use provided templates for common data-mask usage. This enforces safe, predictable coding practices for readable R scripts.

Can I refactor existing R scripts to use modern tidyverse syntax automatically?

Yes, you can refactor existing R scripts to use modern tidyverse syntax by editing scripts to replace default library(tidyverse) usage with explicit library calls and modern native native piping style.