| as.character.am_text | R Documentation |
Extracts the full text content from an Automerge text object as a standard character string.
## S3 method for class 'am_text'
as.character(x, ...)
x |
An Automerge text object |
... |
Additional arguments (unused) |
Character string with the full text content
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"
identical(as.character(text_obj), am_text_content(text_obj)) # TRUE
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.