# Create document with random actor ID
doc1 <- am_create()
doc1
# Create with custom hex actor ID
doc2 <- am_create("0123456789abcdef0123456789abcdef")
# Create with raw bytes actor ID
actor_bytes <- as.raw(1:16)
doc3 <- am_create(actor_bytes)
am_close(doc1)
am_close(doc2)
am_close(doc3)
Run the code above in your browser using DataLab