Skip to contents

Serializes an R object and writes the eon representation to a file on disk.

Usage

write_eon(x, path)

write_eon(x, path)

Arguments

x

An R object to serialize.

path

Path to write the eon file.

Value

path, invisibly.

Examples

tmp <- tempfile(fileext = '.eon')
write_eon(list(name = 'Alice', age = 30L), tmp)
readLines(tmp)
#> [1] "name: \"Alice\"" "age: 30"