← 返回
数据分析 中文

Running R Analysis In Existing Projects

Work inside an existing R project to extend analyses, modify scripts, run statistical models, update visualizations, and regenerate reports.
在现有R项目中扩展分析、修改脚本、运行统计模型、更新可视化并重新生成报告。
jackkuo666
数据分析 clawhub v0.1.0 1 版本 99902.4 Key: 无需
★ 0
Stars
📥 1,024
下载
💾 12
安装
1
版本
#latest

概述

Running R Analysis in Existing Projects

This skill operates inside an already structured R project. It helps extend, debug, or enhance existing analyses without recreating the project from scratch.

Use this skill when the user wants to:

  • Continue analysis in an existing R project
  • Modify or extend R scripts
  • Add new statistical models or tests
  • Update plots or figures
  • Regenerate reports after data or code changes
  • Debug R errors in a project

What This Skill Does

When activated, this skill will:

  1. Understand the project structure
    • Detect folders like data/, scripts/, results/, reports/
    • Identify .Rproj, .Rmd, .qmd, or .R files
  1. Inspect existing analysis
    • Read current scripts and reports
    • Identify which packages and methods are being used
    • Avoid rewriting working components unnecessarily
  1. Extend or modify analysis
    • Add new models or statistical tests
    • Introduce new plots using ggplot2
    • Add new data processing steps
    • Improve code structure or reproducibility
  1. Re-run and update outputs
    • Recompute results
    • Overwrite or version new outputs in results/
    • Re-render R Markdown or Quarto reports
  1. Debug issues
    • Fix missing packages
    • Resolve file path problems
    • Handle common R errors and warnings

Example User Requests That Should Trigger This Skill

  • "Add a survival analysis to this R project"
  • "Update the plots in my report"
  • "This R Markdown file throws an error, fix it"
  • "Extend this analysis with a mixed-effects model"
  • "Re-run everything after I updated the data"

Example Workflow

User: Add a logistic regression model and update the report.

Skill actions:

  • Locate main analysis script
  • Add logistic regression using glm()
  • Save model summary to results/
  • Update report with new section and plot
  • Re-render HTML/PDF report

Tools & Packages Commonly Used

PurposeR Packages
--------------------
Data wranglingtidyverse, dplyr
Modelingstats, lme4, glmnet
Visualizationggplot2
Reportingrmarkdown, quarto
Project managementhere, renv

Notes

  • Respect the existing project structure and style
  • Do not delete user code unless explicitly requested
  • Prefer incremental updates over full rewrites
  • Always regenerate reports after modifying analysis

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 20:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Sci Hub Search

jackkuo666
通过Sci-Hub搜索和下载学术论文的AI工具
★ 3 📥 1,273
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,290
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 166 📥 60,297