| read_caugi | R Documentation |
Reads a caugi graph from a file in the native caugi JSON format.
read_caugi(path, lazy)
path |
Character string specifying the file path. |
lazy |
DEPRECATED, no longer necessary. The graph is always built lazily, so this argument is ignored. |
The function validates the file format and version, ensuring compatibility with the current version of the caugi package.
A caugi object.
Other export:
caugi_deserialize(),
caugi_dot(),
caugi_export(),
caugi_graphml(),
caugi_mermaid(),
caugi_serialize(),
export-classes,
format-caugi,
format-dot,
format-graphml,
format-mermaid,
knit_print.caugi_export(),
read_graphml(),
to_dot(),
to_graphml(),
to_mermaid(),
write_caugi(),
write_dot(),
write_graphml(),
write_mermaid()
cg <- caugi(
A %-->% B + C,
class = "DAG"
)
# Write and read
tmp <- tempfile(fileext = ".caugi.json")
write_caugi(cg, tmp)
cg2 <- read_caugi(tmp)
# Clean up
unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.