powered by
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 am_doc as.list(x, ...)
Named list with document contents
An Automerge document
Additional arguments (unused)
doc <- am_create() doc$name <- "Alice" doc$age <- 30L as.list(doc) # list(name = "Alice", age = 30L) am_close(doc)
Run the code above in your browser using DataLab