object_to_string: Convert R objects to/from strings

Description Usage Arguments Examples

View source: R/serialisation.R

Description

Serialise/deserialise an R object into a string. This is a very thin wrapper around the existing R functions serialize and rawToChar. This is useful to encode arbitrary R objects as string to then save in Redis (which expects a string).

Usage

1
2
3
4
5
6
7

Arguments

obj

An R object to convert into a string

str

A string to convert into an R object

bin

A binary vector to convert back to an R object

Examples

1
2
3
4

ropensci/RedisAPI documentation built on May 16, 2018, 6:58 a.m.