creating-r-research-projects_skill

This skill helps you create and manage a reproducible R research project, install dependencies, run analyses, and generate publication-ready reports and
  • Python

2.5k

GitHub Stars

3

Bundled Files

2 months ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill creating-r-research-projects

  • _meta.json312 B
  • README.md4.6 KB
  • SKILL.md2.5 KB

Overview

This skill sets up reproducible R research projects and automates analysis, package management, and report generation. It creates a standardized project layout, configures a reproducible environment, and produces publication-ready figures and documents. The focus is on scripted, repeatable workflows for statistics and bioinformatics.

How this skill works

The skill scaffolds an R project directory (data/, scripts/, results/, reports/) and initializes renv or an RStudio project file for environment reproducibility. It installs required CRAN and Bioconductor packages, generates analysis scripts for data import, cleaning, statistical modeling, and visualization, and saves outputs (CSVs, plots, model summaries). Finally it creates an R Markdown or Quarto report and renders it to HTML or PDF with embedded methods, figures, and results.

When to use it

  • You need a reproducible R project scaffold for a new analysis
  • Analyze CSVs, gene expression, or omics datasets with R
  • Run statistical tests, regression models, or differential expression workflows
  • Produce publication-ready plots and a methods/results report
  • Manage and lock package dependencies for long-term reproducibility

Best practices

  • Use renv to capture and restore package versions for reproducibility
  • Keep all raw data in data/ and write scripts that create processed files programmatically
  • Script the complete analysis end-to-end; avoid manual interactive steps unless requested
  • Save all outputs (plots, tables, model objects) to results/ with descriptive filenames
  • Write a single R Markdown or Quarto document that knits figures and tables automatically

Example use cases

  • Create a new R project to analyze a clinical CSV and produce regression output and plots
  • Run differential expression using DESeq2 and output PCA and volcano plots with an HTML report
  • Set up a microbiome analysis pipeline with tidyverse, phyloseq, and save ordination plots
  • Generate a reproducible report that documents methods, code, and results for peer review
  • Lock dependencies with renv and provide a restore-ready environment for collaborators

FAQ

Yes. The skill installs CRAN and Bioconductor packages as specified and records them in renv for reproducibility.

Will it run analyses interactively or only scripted?

The default is fully scripted, non-interactive workflows that save outputs to files. Interactive steps can be included on request.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
creating-r-research-projects skill by openclaw/skills | VeilStrat