← 返回 Skills 市场
jackkuo666

Debugging R Environment And Dependencies

作者 JackKuo666 · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
484
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install debugging-r-environment-and-dependencies
功能描述
Diagnose and fix R environment issues, including package installation failures, dependency conflicts, system library problems, renv errors, and Bioconductor...
使用说明 (SKILL.md)

Debugging R Environment and Dependencies

This skill focuses on resolving problems related to R environments rather than analysis logic. It helps restore a working setup so that R scripts and projects can run successfully.

Use this skill when the user encounters:

  • Package installation failures
  • Version conflicts between packages
  • renv or packrat environment issues
  • Bioconductor version mismatches
  • System dependency errors (e.g., missing compilers or libraries)
  • R failing to start or load packages

What This Skill Does

When activated, this skill will:

  1. Diagnose the environment

    • Check R version
    • Check installed packages and versions
    • Inspect renv.lock or project library
    • Identify Bioconductor version compatibility
  2. Resolve package installation issues

    • Suggest correct CRAN/Bioconductor repositories
    • Install missing system dependencies (e.g., libxml2, curl, openssl)
    • Handle compilation failures on Linux/macOS/Windows
  3. Fix dependency conflicts

    • Align package versions
    • Reinstall broken packages
    • Clean corrupted package libraries
  4. Repair project environments

    • Restore with renv::restore()
    • Rebuild renv.lock
    • Reinitialize project library if needed
  5. Bioconductor troubleshooting

    • Match Bioconductor version to R version
    • Use BiocManager::install() correctly
    • Resolve common bioinformatics package errors
  6. System-level troubleshooting

    • Install missing compilers (e.g., gcc, gfortran)
    • Install development libraries required for R packages
    • Fix PATH or permission issues

Example User Requests That Should Trigger This Skill

  • "I can't install tidyverse"
  • "This package fails with a compilation error"
  • "renv restore is broken"
  • "Bioconductor says my version is incompatible"
  • "library() fails even though the package is installed"
  • "R says shared object cannot be loaded"

Example Workflow

User: I get an error when installing sf.

Skill actions:

  • Detect missing system libraries (GEOS, GDAL, PROJ)
  • Provide OS-specific install commands
  • Retry R package installation
  • Confirm successful library loading

Common Problem Categories

Category Examples
Missing system libs xml2, curl, openssl, sf, rJava
Compiler issues gfortran missing, Xcode tools missing
Version mismatch old R vs new package
Bioconductor mismatch wrong Bioc version for R
renv problems corrupted cache, lockfile mismatch
Permission issues cannot write to library path

Notes

  • Do not modify analysis code unless necessary
  • Prefer fixing the environment over rewriting scripts
  • Always aim to make the project reproducible
  • Recommend renv for future environment stability
安全使用建议
This skill appears to be what it claims: a troubleshooting guide for R environments. Things to keep in mind before using it: (1) many suggested fixes involve running OS package-manager commands (sudo apt / brew / dnf) and installing compilers—review any commands before executing them and run on a machine where you have permission to install system packages; (2) renv operations and lockfile updates will change project state—commit or back up your repo before making changes; (3) the skill does not ask for API keys or secrets, but some fixes (e.g., rJava) may require installing external software like a JDK—verify sources yourself; (4) if you want extra safety, have the skill produce the exact commands it would run and run them manually rather than allowing autonomous execution.
功能分析
Type: OpenClaw Skill Name: debugging-r-environment-and-dependencies Version: 0.1.0 The skill bundle is designed to diagnose and fix R environment issues, which inherently requires the AI agent to execute system-level commands (e.g., `sudo apt install`, `brew install`) to install missing dependencies and compilers. This capability is explicitly stated in `SKILL.md` and demonstrated with examples in `examples/missing-system-deps/README.md`. While necessary for its stated purpose, the ability to execute arbitrary system commands, potentially with elevated privileges, introduces a significant Remote Code Execution vulnerability. There is no evidence of intentional malicious behavior such as data exfiltration, persistence, or prompt injection for harmful objectives within the provided files, but the inherent high-risk capabilities warrant a 'suspicious' classification.
能力评估
Purpose & Capability
Name/description match the actual instructions: the skill diagnoses R version/package/renv/Bioconductor issues and proposes installing system libraries and compilers when needed. All required actions are proportional to fixing R environment problems.
Instruction Scope
SKILL.md stays within scope: it lists commands to check R and project files (renv.lock), suggests OS-specific package-manager commands, and recommends renv and BiocManager operations. It does not instruct reading unrelated system files, accessing external endpoints, or exfiltrating secrets.
Install Mechanism
Instruction-only skill with no install spec and no code files; nothing is downloaded or written by an installer. Risk from installation is low because the skill only suggests standard OS package-manager commands (apt/brew/dnf) rather than pulling archives from arbitrary URLs.
Credentials
The skill declares no required environment variables, credentials, or config paths. It may suggest system-level installs that require elevated privileges (sudo), which is appropriate for installing compilers or system libs but not a secret-exfiltration risk.
Persistence & Privilege
always is false and the skill does not request persistent agent privileges or modify other skills' configs. Autonomous invocation is allowed by platform default but is not unusual here and does not combine with other red flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install debugging-r-environment-and-dependencies
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /debugging-r-environment-and-dependencies 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of the R environment and dependency debugging skill. - Diagnose and resolve package installation failures, version conflicts, and system dependency errors. - Troubleshoot and repair `renv` or Bioconductor environment issues. - Provide guidance for missing compilers, development libraries, and PATH/permission problems. - Restore or rebuild working R project environments to ensure script compatibility. - Offer OS-specific steps for resolving common package and system-level R problems.
元数据
Slug debugging-r-environment-and-dependencies
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Debugging R Environment And Dependencies 是什么?

Diagnose and fix R environment issues, including package installation failures, dependency conflicts, system library problems, renv errors, and Bioconductor... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 484 次。

如何安装 Debugging R Environment And Dependencies?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install debugging-r-environment-and-dependencies」即可一键安装,无需额外配置。

Debugging R Environment And Dependencies 是免费的吗?

是的,Debugging R Environment And Dependencies 完全免费(开源免费),可自由下载、安装和使用。

Debugging R Environment And Dependencies 支持哪些平台?

Debugging R Environment And Dependencies 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Debugging R Environment And Dependencies?

由 JackKuo666(@jackkuo666)开发并维护,当前版本 v0.1.0。

💬 留言讨论