| as.list.am_doc | R Documentation |
Recursively converts the root of an Automerge document to a standard R list. Maps become named lists, lists become unnamed lists, and nested objects are recursively converted.
## S3 method for class 'am_doc'
as.list(x, ...)
x |
An Automerge document |
... |
Additional arguments (unused) |
Named list with document contents
doc <- am_create()
doc$name <- "Alice"
doc$age <- 30L
as.list(doc) # list(name = "Alice", age = 30L)
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.