am_get_actor_hex: Get the actor ID as a hex string

View source: R/document.R

am_get_actor_hexR Documentation

Get the actor ID as a hex string

Description

Returns the actor ID of an Automerge document as a hex-encoded string. This is more efficient than converting the raw bytes returned by am_get_actor() using R-level string operations.

Usage

am_get_actor_hex(doc)

Arguments

doc

An Automerge document

Value

A character string containing the hex-encoded actor ID

Examples

doc <- am_create()
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.