| am_set_actor | R Documentation |
Sets the actor ID for an Automerge document. This should typically be done before making any changes. Changing the actor ID mid-session is not recommended as it can complicate change attribution.
am_set_actor(doc, actor_id)
doc |
An Automerge document |
actor_id |
The new actor ID. Can be:
|
The document doc (invisibly)
doc <- am_create()
# Set custom actor ID from hex string
am_set_actor(doc, "0123456789abcdef0123456789abcdef")
# Generate new random actor ID
am_set_actor(doc, NULL)
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.