R/convenience.R
from_automerge.Rd
Converts an Automerge document to a standard R list. This is equivalent to as.list.am_doc().
as.list.am_doc()
from_automerge(doc)
An Automerge document
Named list with document contents
doc <- am_create() doc$name <- "Alice" doc$age <- 30L from_automerge(doc) # list(name = "Alice", age = 30L) #> $age #> [1] 30 #> #> $name #> [1] "Alice" #> am_close(doc)