Learn R Programming

automerge (version 0.2.0)

from_automerge: Convert Automerge document to R list

Description

Converts an Automerge document to a standard R list. This is equivalent to as.list.am_doc().

Usage

from_automerge(doc)

Value

Named list with document contents

Arguments

doc

An Automerge document

Examples

Run this code
doc <- am_create()
doc$name <- "Alice"
doc$age <- 30L

from_automerge(doc)  # list(name = "Alice", age = 30L)

Run the code above in your browser using DataLab