| am_get_changes | R Documentation |
Returns all changes that have been made to the document since the specified
heads. If heads is NULL, returns all changes in the document's history.
am_get_changes(doc, heads = NULL)
doc |
An Automerge document |
heads |
A list of raw vectors (change hashes) returned by |
Changes are returned as serialized raw vectors that can be transmitted over
the network and applied to other documents using am_apply_changes().
A list of raw vectors, each containing a serialized change.
doc <- am_create()
am_put(doc, AM_ROOT, "x", 1)
am_commit(doc)
# Get all changes
all_changes <- am_get_changes(doc, NULL)
cat("Document has", length(all_changes), "change(s)\n")
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.