names.am_doc: Get names from document root

View source: R/methods.R

names.am_docR Documentation

Get names from document root

Description

Returns the keys from the root map of an Automerge document.

Usage

## S3 method for class 'am_doc'
names(x)

Arguments

x

An Automerge document

Value

Character vector of key names

Examples

doc <- am_create()
doc$name <- "Alice"
doc$age <- 30L
names(doc)  # c("name", "age")
am_close(doc)


automerge documentation built on Feb. 5, 2026, 5:08 p.m.