npx claudepluginhub pjt222/agent-almanacThis skill uses the workspace's default tool permissions.
---
Use when creating, editing, or validating R package skills (library(pkg), pkg::), or gathering R package documentation (CRAN, pkgdown, vignettes) to generate a skill
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Share bugs, ideas, or general feedback.
Install the putior R package and its optional dependencies so the annotation-to-diagram pipeline is ready to use.
mcptools, ellmer), interactive (shiny, shinyAce), logging (logger), ACP (plumber2)Confirm R is available and meets the minimum version requirement.
R.Version()$version.string
# Must be >= 4.1.0
# From WSL with Windows R
"/mnt/c/Program Files/R/R-4.5.2/bin/Rscript.exe" -e "cat(R.version.string)"
Expected: R version string printed, >= 4.1.0.
On failure: Install or upgrade R. On Windows, download from https://cran.r-project.org/bin/windows/base/. On Linux, use sudo apt install r-base.
Install from CRAN (stable) or GitHub (dev).
# CRAN (recommended)
install.packages("putior")
# GitHub dev version (if latest features needed)
remotes::install_github("pjt222/putior")
Expected: Package installs without errors. library(putior) loads silently.
On failure: If CRAN installation fails with "not available for this version of R", use the GitHub version. If GitHub fails, check that remotes is installed: install.packages("remotes").
Install optional packages based on required functionality.
# MCP server integration (for AI assistant access)
remotes::install_github("posit-dev/mcptools")
install.packages("ellmer")
# Interactive sandbox
install.packages("shiny")
install.packages("shinyAce")
# Structured logging
install.packages("logger")
# ACP server (agent-to-agent communication)
install.packages("plumber2")
Expected: Each package installs without errors.
On failure: For mcptools, ensure remotes is installed first. For system dependency errors on Linux, install the required libraries (e.g., sudo apt install libcurl4-openssl-dev for httr2 dependency).
Run the basic pipeline to confirm everything works.
library(putior)
# Check package version
packageVersion("putior")
# Verify core functions are available
stopifnot(
is.function(put),
is.function(put_auto),
is.function(put_diagram),
is.function(put_generate),
is.function(put_merge),
is.function(put_theme)
)
# Test basic pipeline with a temp file
tmp <- tempfile(fileext = ".R")
writeLines("# put id:'test', label:'Hello putior'", tmp)
cat(put_diagram(put(tmp)))
Expected: Mermaid flowchart code printed to console containing test and Hello putior.
Key defaults: All scan functions (
put(),put_auto(),put_generate(),put_merge()) default torecursive = TRUE, scanning subdirectories automatically. This is a breaking change from pre-0.2.0 versions where the default wasFALSE. All scan functions also accept anexcludeparameter for regex-based file filtering (e.g.,put("./src/", exclude = "test_")).
If the optional shiny package is installed, try the interactive sandbox:
putior::run_sandbox()
This launches a browser-based editor where you can experiment with PUT annotation syntax and see diagrams rendered in real time.
On failure: If put is not found, the package did not install correctly. Reinstall with install.packages("putior", dependencies = TRUE). If the diagram is empty, verify the temp file was created and the annotation syntax uses single quotes inside double quotes.
library(putior) loads without errorspackageVersion("putior") returns a valid versionput() with a file containing a valid PUT annotation returns a data frame with one rowput_diagram() produces Mermaid code starting with flowchartid:'name', not id:"name" (which conflicts with the comment string delimiter in some contexts).RSTUDIO_PANDOC is set in .Renviron.renv::install("putior") instead of install.packages("putior").mcptools from GitHub may fail without a GITHUB_PAT. Set one via usethis::create_github_token().analyze-codebase-workflow — next step after installation to survey a codebaseconfigure-putior-mcp — set up the MCP server after installing optional depsmanage-renv-dependencies — manage putior within an renv environmentconfigure-mcp-server — general MCP server configuration