r-development
Write modern R code with tidyverse patterns
Writing R code with outdated patterns wastes time and creates technical debt. This skill provides current best practices for tidyverse, rlang metaprogramming, and package development so you can write clean, efficient R code.
์คํฌ ZIP ๋ค์ด๋ก๋
Claude์์ ์ ๋ก๋
์ค์ โ ๊ธฐ๋ฅ โ ์คํฌ โ ์คํฌ ์ ๋ก๋๋ก ์ด๋
ํ ๊ธ์ ์ผ๊ณ ์ฌ์ฉ ์์
ํ ์คํธํด ๋ณด๊ธฐ
"r-development" ์ฌ์ฉ ์ค์ ๋๋ค. Show me how to summarize data by group with modern dplyr
์์ ๊ฒฐ๊ณผ:
- Use .by parameter for per-operation grouping
- Returns ungrouped result automatically
- Example: data |> summarise(mean(x), .by = category)
- Works with across() for multiple columns
"r-development" ์ฌ์ฉ ์ค์ ๋๋ค. How do I create an R package with modern structure
์์ ๊ฒฐ๊ณผ:
- Start with usethis::create_package() for proper structure
- Add dependencies in DESCRIPTION Imports field
- Use roxygen2 for documentation from code comments
- Set up tests with testthat framework
๋ณด์ ๊ฐ์ฌ
์์ Pure documentation skill containing only markdown files with R code examples. No executable code, network calls, filesystem access, or external commands. All capabilities align with stated purpose. Static scanner flagged patterns in documentation text as security issues, but all are false positives.
์ํ ์์ธ
โ๏ธ ์ธ๋ถ ๋ช ๋ น์ด (182)
๐ ๋คํธ์ํฌ ์ ๊ทผ (1)
ํ์ง ์ ์
๋ง๋ค ์ ์๋ ๊ฒ
Modernize data pipelines
Upgrade legacy R code to current tidyverse patterns for cleaner, faster data pipelines.
Build quality packages
Create maintainable R packages with proper structure, testing, and documentation.
Optimize slow code
Identify and fix performance bottlenecks using profiling and benchmarking tools.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Show me how to filter rows in R using modern dplyr with multiple conditions and .by grouping.
Write an inner join using join_by() with inequality matching and multiple match handling.
Create an R function that uses rlang {{ }} syntax to accept column names as arguments.Set up a complete R package structure with DESCRIPTION, NAMESPACE, testing, and proper documentation patterns.
๋ชจ๋ฒ ์ฌ๋ก
- Use native pipe |> instead of magrittr %>% for modern R 4.1+
- Profile code with profvis before optimizing to find real bottlenecks
- Validate inputs in user-facing functions, assume valid in internal helpers
ํผํ๊ธฐ
- Avoid group_by() |> summarise() |> ungroup() pattern, use .by instead
- Do not use library() in packages, use Imports in DESCRIPTION
- Avoid growing vectors in loops, pre-allocate instead
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
Which R version is required for modern tidyverse patterns?
What is the difference between {{}} and .data[[]]?
How do I integrate this skill with existing R projects?
Does this skill store or share my data?
How is this different from R documentation websites?
Should I use S3 or S7 for new projects?
๊ฐ๋ฐ์ ์ธ๋ถ ์ ๋ณด
ํ์ผ ๊ตฌ์กฐ