Convenience function to export a diagram to multiple formats at once
Usage
export_c4_all(diagram, file, formats = c("png", "svg", "pdf"), ...)Examples
if (FALSE) { # \dontrun{
diagram <- c4_context(
title = "My System",
person = list(c4_person("user", "User", "A user")),
system = list(c4_system("app", "App", "An app")),
relationships = list(c4_rel("user", "app", "Uses"))
)
# Export to PNG, SVG, and PDF
export_c4_all(diagram, "architecture", formats = c("png", "svg", "pdf"))
} # }