rap-init

Scaffold R project directories and template files for RAP compliance.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/ivyleavedtoadflax/RapSkill --skill rap-init
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rap-init
Source: https://github.com/ivyleavedtoadflax/RapSkill/tree/main/plugins/rap/skills/rap-init
Command: npx skills add https://github.com/ivyleavedtoadflax/RapSkill --skill rap-init

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of a new R project structured for Reproducible Analytical Pipelines (RAP), ensuring immediate compliance with Baseline RAP standards and providing a foundation for higher maturity levels.

Core Features & Use Cases

  • Project Scaffolding: Generates a standard RAP directory structure (R/, data/, output/, tests/testthat/, reports/).
  • Template Files: Creates essential project files like DESCRIPTION, README.md, .gitignore, RStudio project file (.Rproj), and initial R scripts.
  • Environment Setup: Initializes Git version control and the renv package manager for dependency management.
  • Use Case: A data analyst needs to start a new project for official statistics. They use /rap-init my-new-analysis to quickly set up a project that adheres to government RAP guidelines, saving setup time and ensuring best practices from the start.

Quick Start

Use the rap-init skill to scaffold a new RAP-compliant R project named 'my-statistics-pipeline'.

Frequently Asked Questions about rap-init

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

FAQPage Schema
How do I scaffold an R project for Reproducible Analytical Pipelines?

To scaffold a Reproducible Analytical Pipelines (RAP) project, this Skill generates standard directory structures like `R/`, `data/`, and `tests/`, along with essential template files for immediate compliance with UK Government Analysis Function methodology.

What is a Baseline RAP compliant R project structure?

A Baseline RAP compliant R project structure includes standardized folders for code and data, template files like `DESCRIPTION` and `README.md`, and initializes Git and `renv` to satisfy government reproducibility requirements.

Does this RAP scaffolding initialize renv and Git automatically?

Yes, this RAP scaffolding initializes Git version control and the `renv` package manager automatically, establishing robust dependency tracking and reproducible environments from the project's inception.

Can I use this to set up an R project for official statistics?

Yes, you can use this to set up an R project for official statistics. It scaffolds directories and files that satisfy Baseline RAP requirements, providing a foundation for higher Silver compliance maturity levels.

What template files are created when setting up a RAP project?

When setting up a RAP project, template files created include `DESCRIPTION`, `README.md`, `.gitignore`, an RStudio project file (`.Rproj`), and initial R scripts to accelerate your analytical pipeline development.