Learn R Programming

autosync (version 0.2.0)

create_document: Create a new document on the server

Description

Creates a new empty Automerge document and registers it with the server.

Usage

create_document(server, doc_id = NULL)

Value

Document ID string.

Arguments

server

An autosync_server object.

doc_id

Optional document ID. If NULL, generates a new ID.

Examples

Run this code
if (FALSE) { # interactive()
server <- sync_server()
doc_id <- create_document(server)
server$close()
}

Run the code above in your browser using DataLab