c4r provides a simple R interface for creating C4 architecture diagrams. The package focuses on the first three levels of the C4 model (Context, Container, Component), generating diagrams using Graphviz DOT notation rendered through {DiagrammeR}. For the Code level, consider the {flow} package.
Installation
c4r is not yet available on CRAN. You can install the development version from GitHub:
# install.packages("pak")
pak::pak("fabiandistler/c4r")
Learn More
- Getting Started Guide - Complete tutorial with examples
- Function Reference - API documentation