| am_fork | R Documentation |
Creates a fork of an Automerge document at the current heads or at a specific point in history. The forked document shares history with the original up to the fork point but can diverge afterwards.
am_fork(doc, heads = NULL)
doc |
An Automerge document |
heads |
Optional list of change hashes to fork at a specific point in
the document's history. If |
A new Automerge document (fork of the original)
doc1 <- am_create()
doc2 <- am_fork(doc1)
# Now doc1 and doc2 can diverge independently
am_close(doc1)
am_close(doc2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.