am_get_actor: Get the actor ID of a document

View source: R/document.R

am_get_actorR Documentation

Get the actor ID of a document

Description

Returns the actor ID of an Automerge document as a raw vector. The actor ID uniquely identifies the editing session that created changes in the document.

Usage

am_get_actor(doc)

Arguments

doc

An Automerge document

Details

For a hex string representation, use am_get_actor_hex().

Value

A raw vector containing the actor ID bytes

Examples

doc <- am_create()
actor <- am_get_actor(doc)

# Use am_get_actor_hex() for display
actor_hex <- am_get_actor_hex(doc)
cat("Actor ID:", actor_hex, "\n")

am_close(doc)


automerge documentation built on Feb. 5, 2026, 5:08 p.m.