project-structure

Organizes R projects by distinguishing package structures from analysis project layouts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps R users decide between structuring their work as a formal R package or a project-specific analysis, providing clear guidelines and patterns for each.

Core Features & Use Cases

  • Differentiates Project Types: Clearly outlines when to use an R package (reusable code, CRAN) versus an analysis project (reports, EDA).
  • Analysis Project Pattern: Details the "R/ bootstrap" pattern with underscore-prefixed files for setup and configuration.
  • Use Case: A data scientist starting a new research project can use this Skill to quickly set up a well-organized analysis directory, ensuring all dependencies and helper functions are managed efficiently.

Quick Start

Use the project-structure skill to understand the R package structure guidelines.

Frequently Asked Questions about project-structure

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

FAQPage Schema
When should I structure my R code as an R package versus an analysis project?

Use an R package for reusable code or CRAN submission, and an analysis project for reports and exploratory data analysis. This distinction ensures maintainable R project organization tailored to your specific output requirements.

How do I organize an R analysis project using the bootstrap pattern?

An analysis project uses the R/ bootstrap pattern with underscore-prefixed files to manage setup scripts, library loading, and data dictionaries. This pattern standardizes project configuration for new R analysis directories.

What is the best way to manage dependencies in an R analysis project?

Manage dependencies by using underscore-prefixed setup scripts within the R/ bootstrap pattern. This approach centralizes library management and configuration, keeping your R analysis project organized and maintainable.

Does this R project structure pattern work for exploratory data analysis?

Yes, the analysis project structure is specifically designed for reports and exploratory data analysis (EDA). It uses the R/ bootstrap pattern to efficiently manage dependencies and helper functions for EDA workflows.

Why use underscore-prefixed files in an R analysis project?

Underscore-prefixed files in the R/ bootstrap pattern handle setup scripts, library management, and data dictionaries. This naming convention organizes configuration files so they load first, maintaining a standardized analysis project structure.