Learn R Programming

automerge (version 0.3.0)

am_get_actor_hex: 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)

Value

A character string containing the hex-encoded actor ID

Arguments

doc

An Automerge document

Examples

Run this code
doc <- am_create()
actor_hex <- am_get_actor_hex(doc)
actor_hex

am_close(doc)

Run the code above in your browser using DataLab