| am_save | R Documentation |
Serializes an Automerge document to the standard binary format, which can be saved to disk or transmitted over a network. The binary format is compatible across all Automerge implementations (JavaScript, Rust, etc.).
am_save(doc)
doc |
An Automerge document (created with |
A raw vector containing the serialized document
doc <- am_create()
bytes <- am_save(doc)
# Save to file
file <- tempfile()
writeBin(am_save(doc), file)
unlink(file)
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.