am_text_content: Get text content from a text object

View source: R/objects.R

am_text_contentR Documentation

Get text content from a text object

Description

Retrieve the full text content from a text object as a string.

Usage

am_text_content(text_obj)

Arguments

text_obj

An Automerge text object ID

Value

Character string with the full text

Examples

doc <- am_create()
am_put(doc, AM_ROOT, "doc", am_text("Hello"))
text_obj <- am_get(doc, AM_ROOT, "doc")

text <- am_text_content(text_obj)
text  # "Hello"

am_close(doc)


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