Save a networkD3 graph to an HTML file for sharing with others. The HTML can include it's dependencies in an adjacent directory or can bundle all dependencies into the HTML file (via base64 encoding).
saveNetwork(network, file, selfcontained = TRUE)
Network to save (e.g. result of calling the function
simpleNetwork
).
File to save HTML into
Whether to save the HTML as a single self-contained file (with external resources base64 encoded) or a file with external resources placed in an adjacent directory.