Saves an SBM Network object to local disk for use accross sessions without instantiating again. Opened with load_sbm_network
save_sbm_network(sbm, loc)
sbm | Object of class |
---|---|
loc | Location on computer of saved model |
Saved .rds
file on disk at specified location.
Other model_setup:
load_sbm_network()
,
new_sbm_network()
network <- sim_basic_block_network(n_blocks = 3, n_nodes_per_block = 40) sbm_net <- new_sbm_network(edges = network$edges, nodes = network$nodes) temp <- tempfile() save_sbm_network(sbm_net, temp) loaded_sbm_net <- load_sbm_network(temp)