Add graph_svg(), fn_graph(), pkg_graph()#21
Merged
Conversation
graph_svg() renders a static SVG force-directed graph via a base R Fruchterman-Reingold layout with gravity toward the center so nodes don't pile at the viewport bounds. Default 1200x900. Hover tooltips from <title> (multi-line via ), click navigation from <a xlink:href>, CSS :hover highlighting. No JavaScript. fn_graph(project_dir) renders internal function-call edges via symbols(). Tooltips carry file:line, visibility (exported/internal/ external), and degree counts (called by N | calls M). pkg_graph(scan_dir) renders package-level dependency edges via projects(). Tooltips carry title, version, and dep counts. Optional include_suggests = TRUE reads Suggests directly from DESCRIPTION. Bumps 0.4.0 -> 0.5.0.
3 tasks
# Conflicts: # DESCRIPTION
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Force-directed SVG graph rendering for code-analysis results. No new dependencies.
Bumps 0.4.0 → 0.5.0.
⚠ The blast-radius-documentation branch also bumps to 0.5.0; whoever merges second will need to re-bump.
Test plan