list.serialize: Serialize a list

View source: R/list.serialize.R

list.serializeR Documentation

Serialize a list

Description

Serialize a list

Usage

list.serialize(x, file, type = tools::file_ext(file), ...)

Arguments

x

list

file

The file for output

type

The type of serialization, including native serializer and json serializer, which is by default determined by file extension

...

Additional parameters passed to the serializer function

See Also

list.unserialize

Examples

## Not run: 
x <- list(a=1,b=2,c=3)
list.serialize(x,'test.dat')
list.serialize(x,'test.json')

## End(Not run)

renkun-ken/rlist documentation built on March 16, 2023, 8:25 p.m.