Learn R Programming

automerge (version 0.3.0)

am_text: Create an Automerge text object

Description

Creates a text object for collaborative character-level editing. Unlike regular strings (which use last-write-wins semantics), text objects support character-level CRDT merging of concurrent edits, cursor stability, and marks/formatting.

Usage

am_text(initial = "")

Value

A character vector with class am_text_type

Arguments

initial

Initial text content (default "")

Details

Use text objects for collaborative document editing. Use regular strings for metadata, labels, and IDs (99\

Examples

Run this code
# Empty text object
am_text()

# Text with initial content
am_text("Hello, World!")

Run the code above in your browser using DataLab