Skip to contents

Serialises the graph to .rrlmgraph/graph.rds and writes a human-readable .rrlmgraph/config.yml alongside a .rrlmgraph/.gitignore that keeps the RDS out of version control while tracking config.yml and task_trace.jsonl.

Usage

save_graph_cache(graph, cache_dir = NULL)

Arguments

graph

An rrlm_graph / igraph object.

cache_dir

Character(1) or NULL. Path to the cache directory. Defaults to .rrlmgraph/ inside the "project_root" graph attribute, or the current working directory when the attribute is absent.

Value

cache_dir, invisibly.

Examples

if (FALSE) { # \dontrun{
g <- build_rrlm_graph("mypkg")
save_graph_cache(g)
} # }