From ripley at stats.ox.ac.uk  Tue Mar 31 07:59:15 2009
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 31 Mar 2009 06:59:15 +0100 (BST)
Subject: [Rd] external equiv to R_serialize()?
In-Reply-To: <49D191A6.8010905@joeconway.com>
References: <49D191A6.8010905@joeconway.com>
Message-ID: <alpine.LFD.2.00.0903310655041.19538@gannet.stats.ox.ac.uk>

On Mon, 30 Mar 2009, Joe Conway wrote:

> I'm trying to efficiently allow conversion of R objects to PostgreSQL bytea 
> (raw binary) datatype within PL/R for persistent storage in Postgres tables. 
> I have found R_serialize() which looks like what I need, -- e.g. 
> R_serialize(object, NULL, FALSE, NULL) -- except that it is marked 
> attribute_hidden. Is there some other externally available interface that I 
> can use?

R_Serialize is in Rinternals.h.  R_serialize is a wrapper using 
connections, and connections do not have a public API.

Do note the comments in ?serialize: 'persistent' storage of objects in 
an experimental format is somewhat contradictory.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] external equiv to R_serialize()?
Prof Brian Ripley