| am_rollback | R Documentation |
Cancels all pending operations in the current transaction without committing them. This allows you to discard changes since the last commit.
am_rollback(doc)
doc |
An Automerge document |
The document doc (invisibly)
doc <- am_create()
am_put(doc, AM_ROOT, "key", "value")
# Changed my mind, discard the put
am_rollback(doc)
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.