Learn R Programming

putior

Extract beautiful workflow diagrams from your code annotations

putior (PUT + Input + Output + R) is an R package that extracts structured annotations from source code files and creates beautiful Mermaid flowchart diagrams. Perfect for documenting data pipelines, workflows, and understanding complex codebases.

Copy Link

Version

Install

install.packages('putior')

Monthly Downloads

142

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Philipp Thoss

Last Published

June 19th, 2025

Functions in putior (0.1.0)

parse_comma_separated_pairs

Parse comma-separated pairs while respecting quotes
sanitize_node_id

Sanitize node ID for mermaid compatibility (IMPROVED VERSION)
is_valid_put_annotation

Validate PUT annotation syntax
split_file_list

Split comma-separated file list
convert_results_to_df

Convert results list to data frame
generate_connections

Generate connections between nodes
create_artifact_nodes

Create artifact nodes for data files
empty_result_df

Create empty result data frame
get_diagram_themes

Get available themes for put_diagram
put

Scan R and Python Files for PUT Annotations
put_diagram

Create Mermaid Diagram from PUT Workflow
get_theme_colors

Get color schemes for different themes (FIXED VERSION)
validate_annotation

Validate PUT annotation for common issues
handle_output

Handle diagram output to different destinations
get_node_shape

Get node shape characters based on node type
generate_node_definitions

Generate node definitions for mermaid diagram
generate_node_styling

Generate node styling based on node types and theme
process_single_file

Process a single file for PUT annotations
parse_put_annotation

Extract PUT Annotation Properties