| r_introspect_tools | R Documentation |
General-purpose primitives that let a console Agent enrich diagnostic
context on its own when R's geterrmessage() / last.warning /
traceback() snapshots are incomplete.
These tools are intentionally broad (not problem-specific). Domain
tactics – e.g. where to look for an install log, how to interpret an
Rcpp compilation error – live in the r-debug skill (inst/skills/r-debug/).
The tools provide eyes and hands; the skill provides the playbook.
Provided tools:
r_eval: run R code in an isolated subprocess, capture stdout,
stderr (including from grandchild processes like compilers and
install.packages subprocesses), messages, warnings, value, error.
r_session_state: structured snapshot of the live R session
(.libPaths(), repos, search path, key env vars, options, sessionInfo).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.