一键导入
r
Google's official R style guide. Covers naming conventions, formatting, functions, documentation, and R best practices for data analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Google's official R style guide. Covers naming conventions, formatting, functions, documentation, and R best practices for data analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Complete collection of Google's official style guides for 17 languages. Includes TypeScript, JavaScript, Python, Java, Go, C++, C#, Swift, Objective-C, HTML/CSS, AngularJS, Shell, R, Common Lisp, Vim Script, JSON, and Markdown. Production-ready coding standards used across Google's engineering organization, formatted for AI agent consumption.
Google's official AngularJS style guide. Covers controllers, services, directives, modules, dependency injection, and AngularJS 1.x best practices.
Google's official Common Lisp style guide. Covers naming conventions, formatting, macros, packages, documentation strings, and Lisp best practices.
Google's official C++ style guide. Covers headers, naming conventions, formatting, classes, memory management, RAII, smart pointers, and modern C++ features.
Google's official C# style guide. Covers naming conventions, formatting, LINQ, async/await, XML documentation, and .NET best practices.
Google's official Go style guide. Covers gofmt formatting, naming conventions, error handling, interfaces, concurrency patterns, and package organization. Enforces idiomatic Go code with short variable names and explicit error checks.
| name | r |
| description | Google's official R style guide. Covers naming conventions, formatting, functions, documentation, and R best practices for data analysis. |
Official Google R coding standards for consistent, maintainable data analysis code.
| Element | Convention | Example |
|---|---|---|
| Functions | snake_case | calculate_mean |
| Variables | snake_case | user_count |
| Constants | UPPER_SNAKE_CASE | MAX_ITERATIONS |
# ✓ CORRECT
calculate_user_stats <- function(users, min_age = 18) {
users %>%
filter(age >= min_age) %>%
summarize(
count = n(),
avg_age = mean(age)
)
}
npx skills add testdino-hq/google-styleguides-skills/r
See r.md for complete details, examples, and edge cases.