Extracts the full text content from an Automerge text object as a standard character string.
Usage
# S3 method for class 'am_text'
as.character(x, ...)Examples
doc <- am_create()
am_put(doc, AM_ROOT, "notes", am_text("Hello World"))
text_obj <- am_get(doc, AM_ROOT, "notes")
text_string <- as.character(text_obj)
text_string # "Hello World"
#> [1] "Hello World"
identical(as.character(text_obj), am_text_content(text_obj)) # TRUE
#> [1] TRUE