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"
#> [1] "Hello"