Debugging R Environment And Dependencies
/install debugging-r-environment-and-dependencies
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:
-
Diagnose the environment
- Check R version
- Check installed packages and versions
- Inspect
renv.lockor project library - Identify Bioconductor version compatibility
-
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
-
Fix dependency conflicts
- Align package versions
- Reinstall broken packages
- Clean corrupted package libraries
-
Repair project environments
- Restore with
renv::restore() - Rebuild
renv.lock - Reinitialize project library if needed
- Restore with
-
Bioconductor troubleshooting
- Match Bioconductor version to R version
- Use
BiocManager::install()correctly - Resolve common bioinformatics package errors
-
System-level troubleshooting
- Install missing compilers (e.g.,
gcc,gfortran) - Install development libraries required for R packages
- Fix PATH or permission issues
- Install missing compilers (e.g.,
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
renvfor future environment stability
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install debugging-r-environment-and-dependencies - 安装完成后,直接呼叫该 Skill 的名称或使用
/debugging-r-environment-and-dependencies触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。