[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73A92Q8C048EKPB7S3H1BJ2":3,"skill-same:01M73A92Q8C048EKPB7S3H1BJ2":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M73A92Q8C048EKPB7S3H1BJ2","manage-renv-dependencies",null,"Manage R package dependencies using renv for reproducible environments. Covers initialization, snapshot\u002Frestore workflow, troubleshooting common issues, and CI\u002FCD integration. Use when initializing dependency management for a new R project, adding or updating packages, restoring an environment on a new machine, troubleshooting restore failures, or integrating renv with CI\u002FCD pipelines.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fmanage-renv-dependencies\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: manage-renv-dependencies\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-04-24\"\ndescription: >\n  Manage R package dependencies using renv for reproducible environments.\n  Covers initialization, snapshot\u002Frestore workflow, troubleshooting\n  common issues, and CI\u002FCD integration. Use when initializing dependency\n  management for a new R project, adding or updating packages, restoring\n  an environment on a new machine, troubleshooting restore failures, or\n  integrating renv with CI\u002FCD pipelines.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep Glob\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: r-packages\n  complexity: intermediate\n  language: R\n  tags: r, renv, dependencies, reproducibility, lockfile\n---\n\n# Manage renv Dependencies\n\nSet up and maintain reproducible R package environments using renv.\n\n## When to Use\n\n- Initializing dependency management for a new R project\n- Adding or updating package dependencies\n- Restoring a project environment on a new machine\n- Troubleshooting renv restore failures\n- Integrating renv with CI\u002FCD pipelines\n\n## Inputs\n\n- **Required**: R project directory\n- **Optional**: Existing `renv.lock` file (for restore)\n- **Optional**: GitHub PAT for private packages\n\n## Procedure\n\n### Step 1: Initialize renv\n\n```r\nrenv::init()\n```\n\nThis creates:\n- `renv\u002F` directory (library, settings, activation script)\n- `renv.lock` (dependency snapshot)\n- Updates `.Rprofile` to activate renv on load\n\n**Got:** Project-local library created. `renv\u002F` directory and `renv.lock` present. `.Rprofile` updated with activation script.\n\n**If fail:** If it hangs, check network connectivity. If it fails on a specific package, install that package manually first with `install.packages()` and then rerun `renv::init()`.\n\n### Step 2: Add Dependencies\n\nInstall packages as usual:\n\n```r\ninstall.packages(\"dplyr\")\nrenv::install(\"github-user\u002Fprivate-pkg\")\n```\n\nThen snapshot to record the state:\n\n```r\nrenv::snapshot()\n```\n\n**Got:** `renv.lock` updated with new packages and their versions. `renv::status()` shows no out-of-sync packages.\n\n**If fail:** If `renv::snapshot()` reports validation errors, run `renv::dependencies()` to check which packages are actually used, then `renv::snapshot(force = TRUE)` to bypass validation.\n\n### Step 3: Restore on Another Machine\n\n```r\nrenv::restore()\n```\n\n**Got:** All packages installed at the exact versions in `renv.lock`.\n\n**If fail:** Common issues: GitHub packages fail (set `GITHUB_PAT` in `.Renviron`), system dependencies missing (install with `apt-get` on Linux), timeouts on large packages (set `options(timeout = 600)` before restore), or binaries not available (renv compiles from source; ensure build tools are installed).\n\n### Step 4: Update Dependencies\n\n```r\n# Update a specific package\nrenv::update(\"dplyr\")\n\n# Update all packages\nrenv::update()\n\n# Snapshot after updates\nrenv::snapshot()\n```\n\n**Got:** Target packages are updated to their latest compatible versions. `renv.lock` reflects the new versions after snapshot.\n\n**If fail:** If `renv::update()` fails for a specific package, try installing it directly with `renv::install(\"package@version\")` and then snapshot.\n\n### Step 5: Check Status\n\n```r\nrenv::status()\n```\n\n**Got:** \"No issues found\" or a clear list of out-of-sync packages with actionable guidance.\n\n**If fail:** If status reports packages used but not recorded, run `renv::snapshot()`. If packages are recorded but not installed, run `renv::restore()`.\n\n### Step 6: Configure `.Rprofile` for Conditional Activation\n\n```r\nif (file.exists(\"renv\u002Factivate.R\")) {\n  source(\"renv\u002Factivate.R\")\n}\n```\n\nThis ensures the project works even if renv isn't installed (CI environments, collaborators).\n\n**Got:** R sessions activate renv automatically when starting in the project directory. Sessions without renv installed still start without errors.\n\n**If fail:** If `.Rprofile` causes errors, ensure the `file.exists()` guard is present. Never call `source(\"renv\u002Factivate.R\")` unconditionally.\n\n### Step 7: Git Configuration\n\nTrack these files:\n\n```\nrenv.lock           # Always commit\nrenv\u002Factivate.R     # Always commit\nrenv\u002Fsettings.json  # Always commit\n.Rprofile           # Commit (contains renv activation)\n```\n\nIgnore these (already in renv's `.gitignore`):\n\n```\nrenv\u002Flibrary\u002F       # Machine-specific\nrenv\u002Fstaging\u002F       # Temporary\nrenv\u002Fcache\u002F         # Machine-specific cache\n```\n\n**Got:** `renv.lock`, `renv\u002Factivate.R`, and `renv\u002Fsettings.json` are tracked by Git. Machine-specific directories (`renv\u002Flibrary\u002F`, `renv\u002Fcache\u002F`) are ignored.\n\n**If fail:** If `renv\u002Flibrary\u002F` accidentally gets committed, remove it with `git rm -r --cached renv\u002Flibrary\u002F` and add it to `.gitignore`.\n\n### Step 8: CI\u002FCD Integration\n\nIn GitHub Actions, use the renv cache action:\n\n```yaml\n- uses: r-lib\u002Factions\u002Fsetup-renv@v2\n```\n\nThis automatically restores from `renv.lock` with caching.\n\n**Got:** CI pipeline restores packages from `renv.lock` with caching enabled. Subsequent runs are faster due to cached packages.\n\n**If fail:** If CI restore fails, check that `renv.lock` is committed and up to date. For private GitHub packages, ensure `GITHUB_PAT` is set as a repository secret.\n\n## Validation\n\n- [ ] `renv::status()` reports no issues\n- [ ] `renv.lock` is committed to version control\n- [ ] `renv::restore()` works on a clean checkout\n- [ ] `.Rprofile` conditionally activates renv\n- [ ] CI\u002FCD uses `renv.lock` for dependency resolution\n\n## Pitfalls\n\n- **Running `renv::init()` in wrong directory**: Always verify `getwd()` first\n- **Mixing renv and system library**: After `renv::init()`, only use the project library\n- **Forgetting to snapshot**: After installing packages, always run `renv::snapshot()`\n- **`--vanilla` flag**: `Rscript --vanilla` skips `.Rprofile`, so renv won't activate\n- **Large lock files in diffs**: Normal — `renv.lock` is designed to be diffable JSON\n- **Bioconductor packages**: Use `renv::install(\"bioc::PackageName\")` and ensure BiocManager is configured\n\n## Related Skills\n\n- `create-r-package` - includes renv initialization\n- `setup-github-actions-ci` - CI integration with renv\n- `submit-to-cran` - dependency management for CRAN packages\n","# Manage renv Dependencies\n\nSet up and maintain reproducible R package environments using renv.\n\n## When to Use\n\n- Initializing dependency management for a new R project\n- Adding or updating package dependencies\n- Restoring a project environment on a new machine\n- Troubleshooting renv restore failures\n- Integrating renv with CI\u002FCD pipelines\n\n## Inputs\n\n- **Required**: R project directory\n- **Optional**: Existing `renv.lock` file (for restore)\n- **Optional**: GitHub PAT for private packages\n\n## Procedure\n\n### Step 1: Initialize renv\n\n```r\nrenv::init()\n```\n\nThis creates:\n- `renv\u002F` directory (library, settings, activation script)\n- `renv.lock` (dependency snapshot)\n- Updates `.Rprofile` to activate renv on load\n\n**Got:** Project-local library created. `renv\u002F` directory and `renv.lock` present. `.Rprofile` updated with activation script.\n\n**If fail:** If it hangs, check network connectivity. If it fails on a specific package, install that package manually first with `install.packages()` and then rerun `renv::init()`.\n\n### Step 2: Add Dependencies\n\nInstall packages as usual:\n\n```r\ninstall.packages(\"dplyr\")\nrenv::install(\"github-user\u002Fprivate-pkg\")\n```\n\nThen snapshot to record the state:\n\n```r\nrenv::snapshot()\n```\n\n**Got:** `renv.lock` updated with new packages and their versions. `renv::status()` shows no out-of-sync packages.\n\n**If fail:** If `renv::snapshot()` reports validation errors, run `renv::dependencies()` to check which packages are actually used, then `renv::snapshot(force = TRUE)` to bypass validation.\n\n### Step 3: Restore on Another Machine\n\n```r\nrenv::restore()\n```\n\n**Got:** All packages installed at the exact versions in `renv.lock`.\n\n**If fail:** Common issues: GitHub packages fail (set `GITHUB_PAT` in `.Renviron`), system dependencies missing (install with `apt-get` on Linux), timeouts on large packages (set `options(timeout = 600)` before restore), or binaries not available (renv compiles from source; ensure build tools are installed).\n\n### Step 4: Update Dependencies\n\n```r\n# Update a specific package\nrenv::update(\"dplyr\")\n\n# Update all packages\nrenv::update()\n\n# Snapshot after updates\nrenv::snapshot()\n```\n\n**Got:** Target packages are updated to their latest compatible versions. `renv.lock` reflects the new versions after snapshot.\n\n**If fail:** If `renv::update()` fails for a specific package, try installing it directly with `renv::install(\"package@version\")` and then snapshot.\n\n### Step 5: Check Status\n\n```r\nrenv::status()\n```\n\n**Got:** \"No issues found\" or a clear list of out-of-sync packages with actionable guidance.\n\n**If fail:** If status reports packages used but not recorded, run `renv::snapshot()`. If packages are recorded but not installed, run `renv::restore()`.\n\n### Step 6: Configure `.Rprofile` for Conditional Activation\n\n```r\nif (file.exists(\"renv\u002Factivate.R\")) {\n  source(\"renv\u002Factivate.R\")\n}\n```\n\nThis ensures the project works even if renv isn't installed (CI environments, collaborators).\n\n**Got:** R sessions activate renv automatically when starting in the project directory. Sessions without renv installed still start without errors.\n\n**If fail:** If `.Rprofile` causes errors, ensure the `file.exists()` guard is present. Never call `source(\"renv\u002Factivate.R\")` unconditionally.\n\n### Step 7: Git Configuration\n\nTrack these files:\n\n```\nrenv.lock           # Always commit\nrenv\u002Factivate.R     # Always commit\nrenv\u002Fsettings.json  # Always commit\n.Rprofile           # Commit (contains renv activation)\n```\n\nIgnore these (already in renv's `.gitignore`):\n\n```\nrenv\u002Flibrary\u002F       # Machine-specific\nrenv\u002Fstaging\u002F       # Temporary\nrenv\u002Fcache\u002F         # Machine-specific cache\n```\n\n**Got:** `renv.lock`, `renv\u002Factivate.R`, and `renv\u002Fsettings.json` are tracked by Git. Machine-specific directories (`renv\u002Flibrary\u002F`, `renv\u002Fcache\u002F`) are ignored.\n\n**If fail:** If `renv\u002Flibrary\u002F` accidentally gets committed, remove it with `git rm -r --cached renv\u002Flibrary\u002F` and add it to `.gitignore`.\n\n### Step 8: CI\u002FCD Integration\n\nIn GitHub Actions, use the renv cache action:\n\n```yaml\n- uses: r-lib\u002Factions\u002Fsetup-renv@v2\n```\n\nThis automatically restores from `renv.lock` with caching.\n\n**Got:** CI pipeline restores packages from `renv.lock` with caching enabled. Subsequent runs are faster due to cached packages.\n\n**If fail:** If CI restore fails, check that `renv.lock` is committed and up to date. For private GitHub packages, ensure `GITHUB_PAT` is set as a repository secret.\n\n## Validation\n\n- [ ] `renv::status()` reports no issues\n- [ ] `renv.lock` is committed to version control\n- [ ] `renv::restore()` works on a clean checkout\n- [ ] `.Rprofile` conditionally activates renv\n- [ ] CI\u002FCD uses `renv.lock` for dependency resolution\n\n## Pitfalls\n\n- **Running `renv::init()` in wrong directory**: Always verify `getwd()` first\n- **Mixing renv and system library**: After `renv::init()`, only use the project library\n- **Forgetting to snapshot**: After installing packages, always run `renv::snapshot()`\n- **`--vanilla` flag**: `Rscript --vanilla` skips `.Rprofile`, so renv won't activate\n- **Large lock files in diffs**: Normal — `renv.lock` is designed to be diffable JSON\n- **Bioconductor packages**: Use `renv::install(\"bioc::PackageName\")` and ensure BiocManager is configured\n\n## Related Skills\n\n- `create-r-package` - includes renv initialization\n- `setup-github-actions-ci` - CI integration with renv\n- `submit-to-cran` - dependency management for CRAN packages\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"r, renv, dependencies, reproducibility, lockfile","Philipp Thoss","r-packages","1.0","R","intermediate","Julius Brussee homage — caveman","Manage R package dependencies using renv for reproducible environments. Covers initialization, snapshot\u002Frestore workflow, troubleshooting common issues, and CI\u002FCD integration. Use when initializing dependency management for a new R project, adding or updating packages, restoring an environment on a new machine, troubleshooting restore failures, or integrating renv with CI\u002FCD pipelines.\n","Read Write Edit Bash Grep Glob","82c77053","en","2026-04-24","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fmanage-renv-dependencies",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill manage-renv-dependencies",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill manage-renv-dependencies",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill manage-renv-dependencies","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fmanage-renv-dependencies\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]